Skip to content

Commit

Permalink
Fix _get_instance_volume_block_device_info call parameter
Browse files Browse the repository at this point in the history
_get_instance_volume_block_device_info() is expecting an
instance dict-like object instead of instance_uuid

Fix bug 1129441

Change-Id: Id4d536553ce9858434c377653fa79562e1282a34
  • Loading branch information
maoy committed Feb 18, 2013
1 parent 9e2b990 commit 376dafd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nova/compute/manager.py
Expand Up @@ -472,7 +472,7 @@ def _init_instance(self, context, instance):

block_device_info = \
self._get_instance_volume_block_device_info(
context, instance['uuid'])
context, instance)

try:
self.driver.resume_state_on_host_boot(
Expand Down
2 changes: 1 addition & 1 deletion nova/tests/compute/test_compute.py
Expand Up @@ -3551,7 +3551,7 @@ def test_init_instance_failed_resume_sets_error(self):
instance).AndReturn(power_state.SHUTDOWN)
self.compute.driver.plug_vifs(instance, mox.IgnoreArg())
self.compute._get_instance_volume_block_device_info(mox.IgnoreArg(),
instance['uuid']).AndReturn('fake-bdm')
instance).AndReturn('fake-bdm')
self.compute.driver.resume_state_on_host_boot(mox.IgnoreArg(),
instance, mox.IgnoreArg(),
'fake-bdm').AndRaise(test.TestingException)
Expand Down

0 comments on commit 376dafd

Please sign in to comment.