diff options
author | Sankar Tanguturi <stanguturi@stanguturi-rhel> | 2016-03-11 13:29:28 -0800 |
---|---|---|
committer | Sankar Tanguturi <stanguturi@stanguturi-rhel> | 2016-03-11 13:29:28 -0800 |
commit | 03998cd336b3906dc1eb675fff1ddeb1272668d3 (patch) | |
tree | 75a626a18a7fe323d6044ae0ccc19adc793ca43e /cloudinit/sources/helpers/vmware/imc/guestcust_util.py | |
parent | a3fd7441f8ea4d25e96b9bc0eca7cbb6164a4691 (diff) | |
download | vyos-cloud-init-03998cd336b3906dc1eb675fff1ddeb1272668d3.tar.gz vyos-cloud-init-03998cd336b3906dc1eb675fff1ddeb1272668d3.zip |
- Fixed few pep8 and flake8 issues.
- Changed the really long 'from ... import ...' statements.
Diffstat (limited to 'cloudinit/sources/helpers/vmware/imc/guestcust_util.py')
-rw-r--r-- | cloudinit/sources/helpers/vmware/imc/guestcust_util.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cloudinit/sources/helpers/vmware/imc/guestcust_util.py b/cloudinit/sources/helpers/vmware/imc/guestcust_util.py index b8c58f1e..d39f0a65 100644 --- a/cloudinit/sources/helpers/vmware/imc/guestcust_util.py +++ b/cloudinit/sources/helpers/vmware/imc/guestcust_util.py @@ -24,7 +24,6 @@ import time from cloudinit import util
from .guestcust_state import GuestCustStateEnum
-from .guestcust_error import GuestCustErrorEnum
from .guestcust_event import GuestCustEventEnum
logger = logging.getLogger(__name__)
@@ -103,9 +102,9 @@ def enable_nics(nics): for attempt in range(0, enableNicsWaitRetries):
logger.debug("Trying to connect interfaces, attempt %d", attempt)
(out, err) = set_customization_status(
- GuestCustStateEnum.GUESTCUST_STATE_RUNNING,
- GuestCustEventEnum.GUESTCUST_EVENT_ENABLE_NICS,
- nics)
+ GuestCustStateEnum.GUESTCUST_STATE_RUNNING,
+ GuestCustEventEnum.GUESTCUST_EVENT_ENABLE_NICS,
+ nics)
if not out:
time.sleep(enableNicsWaitCount * enableNicsWaitSeconds)
continue
@@ -116,9 +115,9 @@ def enable_nics(nics): for count in range(0, enableNicsWaitCount):
(out, err) = set_customization_status(
- GuestCustStateEnum.GUESTCUST_STATE_RUNNING,
- GuestCustEventEnum.GUESTCUST_EVENT_QUERY_NICS,
- nics)
+ GuestCustStateEnum.GUESTCUST_STATE_RUNNING,
+ GuestCustEventEnum.GUESTCUST_EVENT_QUERY_NICS,
+ nics)
if out and out == NICS_STATUS_CONNECTED:
logger.info("NICS are connected on %d second", count)
return
|