Merge "Enhance exception raised when invalid power state"

This commit is contained in:
Zuul 2019-01-16 21:11:56 +00:00 committed by Gerrit Code Review
commit 06420a588a

View File

@ -149,7 +149,7 @@ class LiveMigrationTask(base.TaskBase):
raise exception.InstanceInvalidState( raise exception.InstanceInvalidState(
instance_uuid=self.instance.uuid, instance_uuid=self.instance.uuid,
attr='power_state', attr='power_state',
state=self.instance.power_state, state=power_state.STATE_MAP[self.instance.power_state],
method='live migrate') method='live migrate')
def _check_instance_has_no_numa(self): def _check_instance_has_no_numa(self):