summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceOVF.py
diff options
context:
space:
mode:
authorSankar Tanguturi <stanguturi@stanguturi-rhel>2016-03-11 13:29:28 -0800
committerSankar Tanguturi <stanguturi@stanguturi-rhel>2016-03-11 13:29:28 -0800
commit03998cd336b3906dc1eb675fff1ddeb1272668d3 (patch)
tree75a626a18a7fe323d6044ae0ccc19adc793ca43e /cloudinit/sources/DataSourceOVF.py
parenta3fd7441f8ea4d25e96b9bc0eca7cbb6164a4691 (diff)
downloadvyos-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/DataSourceOVF.py')
-rw-r--r--cloudinit/sources/DataSourceOVF.py21
1 files changed, 9 insertions, 12 deletions
diff --git a/cloudinit/sources/DataSourceOVF.py b/cloudinit/sources/DataSourceOVF.py
index fec13b93..65cefc48 100644
--- a/cloudinit/sources/DataSourceOVF.py
+++ b/cloudinit/sources/DataSourceOVF.py
@@ -31,16 +31,13 @@ import time
from cloudinit import log as logging
from cloudinit import sources
from cloudinit import util
-from cloudinit.sources.helpers.vmware.imc.config import Config
-from cloudinit.sources.helpers.vmware.imc.config_file import ConfigFile
-from cloudinit.sources.helpers.vmware.imc.config_nic import NicConfigurator
-from cloudinit.sources.helpers.vmware.imc.guestcust_event import \
- GuestCustEventEnum
-from cloudinit.sources.helpers.vmware.imc.guestcust_state import \
- GuestCustStateEnum
-from cloudinit.sources.helpers.vmware.imc.guestcust_error import \
- GuestCustErrorEnum
-from cloudinit.sources.helpers.vmware.imc.guestcust_util import (
+from .helpers.vmware.imc.config import Config
+from .helpers.vmware.imc.config_file import ConfigFile
+from .helpers.vmware.imc.config_nic import NicConfigurator
+from .helpers.vmware.imc.guestcust_event import GuestCustEventEnum
+from .helpers.vmware.imc.guestcust_state import GuestCustStateEnum
+from .helpers.vmware.imc.guestcust_error import GuestCustErrorEnum
+from .helpers.vmware.imc.guestcust_util import (
set_customization_status,
get_nics_to_enable,
enable_nics
@@ -135,8 +132,8 @@ class DataSourceOVF(sources.DataSource):
vmwarePlatformFound = True
enable_nics(nics)
set_customization_status(
- GuestCustStateEnum.GUESTCUST_STATE_DONE,
- GuestCustErrorEnum.GUESTCUST_ERROR_SUCCESS)
+ GuestCustStateEnum.GUESTCUST_STATE_DONE,
+ GuestCustErrorEnum.GUESTCUST_ERROR_SUCCESS)
elif seedfile:
# Found a seed dir
seed = os.path.join(self.paths.seed_dir, seedfile)