diff options
author | Mate Lakat <mate.lakat@citrix.com> | 2012-10-23 16:00:31 +0100 |
---|---|---|
committer | Mate Lakat <mate.lakat@citrix.com> | 2012-10-23 16:09:37 +0100 |
commit | 20b349337eccaa7e1f49742a70f90488af7993fa (patch) | |
tree | 1baac5a4bfd2a9ae79d97ab1cb40fbf813b3204d /nova/virt/configdrive.py | |
parent | a0fcd1248071ad66b610eac4903adf36b314390b (diff) | |
download | nova-20b349337eccaa7e1f49742a70f90488af7993fa.tar.gz |
Move mkfs from libvirt.utils to utils
Related to blueprint xenapi-config-drive
Move mkfs function to nova.utils, so configdrive module does not depend
on the libvirt module. This way, the configdrive module could be used
by other virt modules.
Change-Id: Ibda2aacfa0b66bc087e397df1474b5dfbe86d923
Diffstat (limited to 'nova/virt/configdrive.py')
-rw-r--r-- | nova/virt/configdrive.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/virt/configdrive.py b/nova/virt/configdrive.py index bc9ef55c4f..7ae97f2ecd 100644 --- a/nova/virt/configdrive.py +++ b/nova/virt/configdrive.py @@ -27,7 +27,6 @@ from nova.openstack.common import cfg from nova.openstack.common import log as logging from nova import utils from nova import version -from nova.virt.libvirt import utils as virtutils LOG = logging.getLogger(__name__) @@ -95,7 +94,7 @@ class ConfigDriveBuilder(object): with open(path, 'w') as f: f.truncate(64 * 1024 * 1024) - virtutils.mkfs('vfat', path, label='config-2') + utils.mkfs('vfat', path, label='config-2') mounted = False try: |