Fix missing print format
This is to: 1. Add missing print format for "%(hook_type)". 2. Add ws between words in log message "notavailable". Change-Id: Iaee8697c95f66bff0536db9a266158a3cbc89412
This commit is contained in:
parent
270b7a0b43
commit
036ae75689
|
@ -29,7 +29,7 @@ def clear_hook(hc, stack_id, resource_name, hook_type):
|
||||||
except exc.HTTPNotFound:
|
except exc.HTTPNotFound:
|
||||||
logger.error(
|
logger.error(
|
||||||
"Stack %(stack)s or resource %(resource)s "
|
"Stack %(stack)s or resource %(resource)s "
|
||||||
"not found for hook %(hook_type)",
|
"not found for hook %(hook_type)s",
|
||||||
{'resource': resource_name, 'stack': stack_id,
|
{'resource': resource_name, 'stack': stack_id,
|
||||||
'hook_type': hook_type})
|
'hook_type': hook_type})
|
||||||
|
|
||||||
|
|
|
@ -77,8 +77,7 @@ class HTTPMultipleChoices(HTTPException):
|
||||||
code = 300
|
code = 300
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
self.details = _("Requested version of Heat API is not"
|
self.details = _("Requested version of Heat API is not available.")
|
||||||
"available.")
|
|
||||||
return (_("%(name)s (HTTP %(code)s) %(details)s") %
|
return (_("%(name)s (HTTP %(code)s) %(details)s") %
|
||||||
{
|
{
|
||||||
'name': reflection.get_class_name(self, fully_qualified=False),
|
'name': reflection.get_class_name(self, fully_qualified=False),
|
||||||
|
|
Loading…
Reference in New Issue