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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user