Fix missing print format
This is to add missing print format in placement_helper.py. Change-Id: I23492fd33f3df8c8709f6d6317c936221f1108d4
This commit is contained in:
parent
fd04c67ed8
commit
37b11fa404
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user