Fix i18n issue
This patch fix some i18n issues in the files vapi/compute_v2.py. Change-Id: Ic4da472ca585a35ce64512cf0e72e2fe9d4c9d6e
This commit is contained in:
parent
b90c780d2b
commit
4f66f66b6c
@ -52,7 +52,7 @@ class APIv2(api.BaseAPI):
|
||||
value = int(value)
|
||||
except (TypeError, ValueError):
|
||||
if not msg:
|
||||
msg = "%s is not an integer" % value
|
||||
msg = _("%s is not an integer") % value
|
||||
raise InvalidValue(msg)
|
||||
return value
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user