Enhance exception raised when invalid power state
The invalid state exception did not pass wht power state as a string. Ensure that it is a string and not an integer. TrivialFix Change-Id: I37bb05585bc16de14f7e9a2eb3864c5ed90c7603 Closes-bug: #1811565
This commit is contained in:
parent
da98f4ba45
commit
7180f16232
@ -149,7 +149,7 @@ class LiveMigrationTask(base.TaskBase):
|
||||
raise exception.InstanceInvalidState(
|
||||
instance_uuid=self.instance.uuid,
|
||||
attr='power_state',
|
||||
state=self.instance.power_state,
|
||||
state=power_state.STATE_MAP[self.instance.power_state],
|
||||
method='live migrate')
|
||||
|
||||
def _check_instance_has_no_numa(self):
|
||||
|
Loading…
Reference in New Issue
Block a user