Convert ConfigDriveHelper to being a context manager itself.

This is a little bit less awkward than the previous implementation,
and is based on a suggestion from Padraig Brady.

Change-Id: If8b09a41d21777a4bd56af16e1f7e02d61d1dd4e
This commit is contained in:
Michael Still
2013-01-13 09:27:48 +11:00
parent 2744429bdc
commit 1a7dc4d569

View File

@@ -114,7 +114,7 @@ class _FakeDriverBackendTestCase(object):
# We can't actually make a config drive v2 because ensure_tree has
# been faked out
self.stubs.Set(nova.virt.configdrive._ConfigDriveBuilder,
self.stubs.Set(nova.virt.configdrive.ConfigDriveBuilder,
'make_drive', fake_make_drive)
def _teardown_fakelibvirt(self):