Add missing value types for logging messages

Change-Id: I0a6c6c577311d16f43afe54202122f6821cb9708
Closes-Bug: #1494574
This commit is contained in:
Sergey 2015-09-11 04:58:58 -04:00
parent b0491a4c84
commit e75b42b56e
2 changed files with 2 additions and 2 deletions

View File

@ -284,7 +284,7 @@ class Subnet(neutron.NeutronResource):
gateway_ip = self.properties.get(self.GATEWAY_IP)
if (gateway_ip and gateway_ip not in ['~', ''] and
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)
raise exception.StackValidationFailed(message=msg)

View File

@ -178,7 +178,7 @@ class Stack(
self.id, values)
if not has_updated:
raise exception.NotFound(_('Attempt to update a stack with id: '
'%(id)s %(traversal) %(msg)s') % {
'%(id)s %(traversal)s %(msg)s') % {
'id': self.id,
'traversal': self.current_traversal,
'msg': 'that does not exist'})