From 2d4bc095dbabcc077516dc0abcab8ba40a6cde72 Mon Sep 17 00:00:00 2001
From: licanwei
Date: Mon, 10 Jun 2019 16:48:49 +0800
Subject: [PATCH] Fix string formatting
Change-Id: Iaf995355ec542db076683374c6128656bee2ee6f
---
watcher/common/nova_helper.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/watcher/common/nova_helper.py b/watcher/common/nova_helper.py
index 5600b7192..c3a54d4a8 100644
--- a/watcher/common/nova_helper.py
+++ b/watcher/common/nova_helper.py
@@ -332,8 +332,8 @@ class NovaHelper(object):
if host_name != new_hostname and instance.status == 'ACTIVE':
LOG.debug(
"Live migration succeeded : "
- "instance %s is now on host '%s'.", (
- instance_id, new_hostname))
+ "instance %(instance)s is now on host '%(host)s'.",
+ {'instance': instance_id, 'host': new_hostname})
return True
else:
return False