diff options
author | Matej Klotton <mklotton@cisco.com> | 2016-03-24 16:14:20 +0100 |
---|---|---|
committer | Stefan Kobza <skobza@cisco.com> | 2016-04-22 15:06:08 +0000 |
commit | 8c12ff59f1a5e750151f5eb0e806dcc80e91c3c2 (patch) | |
tree | d42ae972c451e4d0714f000ce9262a64ca06848c /resources/libraries/python/QemuUtils.py | |
parent | 4a7f950c10ca9bcf86e5ccbc3d49a3d7e3cb9809 (diff) |
Reformat python libraries.
PEP8 reformat
fix typos
docstrings reformat
Change-Id: Ic48ba4e06490630808b8e2ab1ab0b046ec7eeed7
Signed-off-by: Matej Klotton <mklotton@cisco.com>
Diffstat (limited to 'resources/libraries/python/QemuUtils.py')
-rw-r--r-- | resources/libraries/python/QemuUtils.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/libraries/python/QemuUtils.py b/resources/libraries/python/QemuUtils.py index 7f74106177..6658c07df9 100644 --- a/resources/libraries/python/QemuUtils.py +++ b/resources/libraries/python/QemuUtils.py @@ -13,10 +13,12 @@ """QEMU utilities library.""" +from time import time, sleep import json import re -from time import time, sleep + from robot.api import logger + from resources.libraries.python.ssh import SSH from resources.libraries.python.constants import Constants from resources.libraries.python.topology import NodeType @@ -122,7 +124,7 @@ class QemuUtils(object): """Set node to run QEMU on. :param node: Node to run QEMU on. - :param node: dict + :type node: dict """ self._node = node self._ssh = SSH() @@ -303,7 +305,7 @@ class QemuUtils(object): def qemu_start(self): """Start QEMU and wait until VM boot. - :return: VM node info + :return: VM node info. :rtype: dict .. note:: First set at least node to run QEMU on. .. warning:: Starts only one VM on the node. |