From 37b11fa40446fabf64554f33f8c1f71692624c63 Mon Sep 17 00:00:00 2001 From: zhufl Date: Wed, 19 Jun 2019 11:43:18 +0800 Subject: [PATCH] Fix missing print format This is to add missing print format in placement_helper.py. Change-Id: I23492fd33f3df8c8709f6d6317c936221f1108d4 --- watcher/common/placement_helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/watcher/common/placement_helper.py b/watcher/common/placement_helper.py index 580ef9e96..405bbcb28 100644 --- a/watcher/common/placement_helper.py +++ b/watcher/common/placement_helper.py @@ -80,7 +80,7 @@ class PlacementHelper(object): if resp.status_code == 200: json = resp.json() return json['inventories'] - msg = ("Failed to get resource provider %(rp_uuid) inventories. " + msg = ("Failed to get resource provider %(rp_uuid)s inventories. " "Got %(status_code)d: %(err_text)s.") args = { 'rp_uuid': rp_uuid, @@ -100,7 +100,7 @@ class PlacementHelper(object): if resp.status_code == 200: json = resp.json() return json['traits'] - msg = ("Failed to get resource provider %(rp_uuid) traits. " + msg = ("Failed to get resource provider %(rp_uuid)s traits. " "Got %(status_code)d: %(err_text)s.") args = { 'rp_uuid': rp_uuid, @@ -142,7 +142,7 @@ class PlacementHelper(object): if resp.status_code == 200: json = resp.json() return json['usages'] - msg = ("Failed to get resource provider %(rp_uuid) usages. " + msg = ("Failed to get resource provider %(rp_uuid)s usages. " "Got %(status_code)d: %(err_text)s.") args = { 'rp_uuid': rp_uuid,