summaryrefslogtreecommitdiff
path: root/trove/module
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-01-19 02:10:02 +0000
committerGerrit Code Review <review@openstack.org>2017-01-19 02:10:02 +0000
commitf644fdcdb5695de53422ea27bce19f4262413d9e (patch)
tree11c10e28c96b93b2d128180cf8656d4fcc2f9207 /trove/module
parent7d219aaf59ed76db3cd10b9a15e167cab55bdce2 (diff)
parent9f170514f0008a0199eb1c1e84b7918badac77ee (diff)
downloadtrove-f644fdcdb5695de53422ea27bce19f4262413d9e.tar.gz
Merge "Add i18n translation to others 1/3"
Diffstat (limited to 'trove/module')
-rw-r--r--trove/module/models.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/trove/module/models.py b/trove/module/models.py
index c6dc52af..0ee40dd5 100644
--- a/trove/module/models.py
+++ b/trove/module/models.py
@@ -46,9 +46,9 @@ class Modules(object):
@staticmethod
def load(context, datastore=None):
if context is None:
- raise TypeError("Argument context not defined.")
+ raise TypeError(_("Argument context not defined."))
elif id is None:
- raise TypeError("Argument is not defined.")
+ raise TypeError(_("Argument is not defined."))
query_opts = {'deleted': False}
if datastore:
@@ -75,9 +75,9 @@ class Modules(object):
def load_auto_apply(context, datastore_id, datastore_version_id):
"""Return all the auto-apply modules for the given criteria."""
if context is None:
- raise TypeError("Argument context not defined.")
+ raise TypeError(_("Argument context not defined."))
elif id is None:
- raise TypeError("Argument is not defined.")
+ raise TypeError(_("Argument is not defined."))
query_opts = {'deleted': False,
'auto_apply': True}
@@ -113,9 +113,9 @@ class Modules(object):
for other tenants, unless the user is admin.
"""
if context is None:
- raise TypeError("Argument context not defined.")
+ raise TypeError(_("Argument context not defined."))
elif id is None:
- raise TypeError("Argument is not defined.")
+ raise TypeError(_("Argument is not defined."))
modules = []
if module_ids: