fix conversion type missing
Conversion type is missing in some places which would cause some unexcepted error. By using 'grep -rn "%(\w\+)\W"', we could find all cases of '%(variable_a)' and fix them. Change-Id: I05cbaac73976c70be8428bf5a2d0017ea7059cb3 Closes-Bug: #1221036
This commit is contained in:
parent
38f76fc672
commit
7c238883cc
1
.mailmap
1
.mailmap
@ -4,3 +4,4 @@
|
||||
lawrancejing <lawrancejing@gmail.com> <liuqing@windawn.com>
|
||||
Jiajun Liu <jiajun@unitedstack.com> <iamljj@gmail.com>
|
||||
Zhongyue Luo <zhongyue.nah@intel.com> <lzyeval@gmail.com>
|
||||
Kun Huang <gareth@unitedstack.com> <academicgareth@gmail.com>
|
||||
|
@ -991,7 +991,7 @@ def delete_profile_binding(tenant_id, profile_id):
|
||||
db_session.delete(binding)
|
||||
except c_exc.ProfileTenantBindingNotFound:
|
||||
LOG.debug(_("Profile-Tenant binding missing for profile ID "
|
||||
"%(profile_id)s and tenant ID %(tenant_id)") %
|
||||
"%(profile_id)s and tenant ID %(tenant_id)s") %
|
||||
{"profile_id": profile_id, "tenant_id": tenant_id})
|
||||
return
|
||||
|
||||
|
@ -134,8 +134,8 @@ class EswitchManager(object):
|
||||
elif network_type == constants.TYPE_IB:
|
||||
LOG.debug(_("creating IB Network"))
|
||||
else:
|
||||
LOG.error(_("Unknown network type %(network_type) "
|
||||
"for network %(network_id)"),
|
||||
LOG.error(_("Unknown network type %(network_type)s "
|
||||
"for network %(network_id)s"),
|
||||
{'network_type': network_type,
|
||||
'network_id': network_id})
|
||||
return
|
||||
|
@ -97,7 +97,7 @@ class OFCClient(object):
|
||||
return data
|
||||
else:
|
||||
LOG.warning(_("Operation on OFC failed: "
|
||||
"status=%(status), detail=%(detail)"),
|
||||
"status=%(status)s, detail=%(detail)s"),
|
||||
{'status': res.status, 'detail': data})
|
||||
params = {'reason': _("Operation on OFC failed"),
|
||||
'status': res.status}
|
||||
|
Loading…
Reference in New Issue
Block a user