Add missing value types for logging messages
Change-Id: I0a6c6c577311d16f43afe54202122f6821cb9708 Closes-Bug: #1494574
This commit is contained in:
parent
b0491a4c84
commit
e75b42b56e
@ -284,7 +284,7 @@ class Subnet(neutron.NeutronResource):
|
|||||||
gateway_ip = self.properties.get(self.GATEWAY_IP)
|
gateway_ip = self.properties.get(self.GATEWAY_IP)
|
||||||
if (gateway_ip and gateway_ip not in ['~', ''] and
|
if (gateway_ip and gateway_ip not in ['~', ''] and
|
||||||
not netutils.is_valid_ip(gateway_ip)):
|
not netutils.is_valid_ip(gateway_ip)):
|
||||||
msg = (_('Gateway IP address "%(gateway)" is in '
|
msg = (_('Gateway IP address "%(gateway)s" is in '
|
||||||
'invalid format.'), gateway_ip)
|
'invalid format.'), gateway_ip)
|
||||||
raise exception.StackValidationFailed(message=msg)
|
raise exception.StackValidationFailed(message=msg)
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ class Stack(
|
|||||||
self.id, values)
|
self.id, values)
|
||||||
if not has_updated:
|
if not has_updated:
|
||||||
raise exception.NotFound(_('Attempt to update a stack with id: '
|
raise exception.NotFound(_('Attempt to update a stack with id: '
|
||||||
'%(id)s %(traversal) %(msg)s') % {
|
'%(id)s %(traversal)s %(msg)s') % {
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
'traversal': self.current_traversal,
|
'traversal': self.current_traversal,
|
||||||
'msg': 'that does not exist'})
|
'msg': 'that does not exist'})
|
||||||
|
Loading…
Reference in New Issue
Block a user