Fix string formatting
Change-Id: Iaf995355ec542db076683374c6128656bee2ee6f
This commit is contained in:
@@ -332,8 +332,8 @@ class NovaHelper(object):
|
|||||||
if host_name != new_hostname and instance.status == 'ACTIVE':
|
if host_name != new_hostname and instance.status == 'ACTIVE':
|
||||||
LOG.debug(
|
LOG.debug(
|
||||||
"Live migration succeeded : "
|
"Live migration succeeded : "
|
||||||
"instance %s is now on host '%s'.", (
|
"instance %(instance)s is now on host '%(host)s'.",
|
||||||
instance_id, new_hostname))
|
{'instance': instance_id, 'host': new_hostname})
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user