Modify the comma to '%' in ZunException message
If use comma, the function call will be considered as two parameters. Change-Id: Ie3d01ba43992d81a28920ca5c1eab4bc31c5048c Closes-bug: #1763332
This commit is contained in:
parent
6d3c3d39db
commit
7b2b6aca68
@ -159,7 +159,7 @@ class KuryrNetwork(network.Network):
|
||||
return None
|
||||
elif len(subnetpools) > 1:
|
||||
raise exception.ZunException(_(
|
||||
'Multiple Neutron subnetpools exist with prefixes %s'),
|
||||
'Multiple Neutron subnetpools exist with prefixes %s') %
|
||||
subnet['cidr'])
|
||||
else:
|
||||
return subnetpools[0]['id']
|
||||
@ -172,7 +172,7 @@ class KuryrNetwork(network.Network):
|
||||
return subnets[0]
|
||||
else:
|
||||
raise exception.ZunException(_(
|
||||
"Multiple Neutron subnets exist with ip version %s"),
|
||||
"Multiple Neutron subnets exist with ip version %s") %
|
||||
ip_version)
|
||||
|
||||
def remove_network(self, network_name):
|
||||
|
Loading…
x
Reference in New Issue
Block a user