summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorMonsyne Dragon <mdragon@rackspace.com>2011-03-03 22:22:00 +0000
committerMonsyne Dragon <mdragon@rackspace.com>2011-03-03 22:22:00 +0000
commit417f6ca5c54878a6bea4d545126f93ecb6a043b4 (patch)
treef4b819a9fa21e73ecf51d26c017753c737de641f /nova
parent9d2ee1b26196efe855d298639561ca69fb96e2cc (diff)
downloadnova-417f6ca5c54878a6bea4d545126f93ecb6a043b4.tar.gz
nova-417f6ca5c54878a6bea4d545126f93ecb6a043b4.tar.xz
nova-417f6ca5c54878a6bea4d545126f93ecb6a043b4.zip
localize a few error messages.
Diffstat (limited to 'nova')
-rw-r--r--nova/api/openstack/accounts.py2
-rw-r--r--nova/api/openstack/users.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/openstack/accounts.py b/nova/api/openstack/accounts.py
index 264fdab99..3b90d2776 100644
--- a/nova/api/openstack/accounts.py
+++ b/nova/api/openstack/accounts.py
@@ -47,7 +47,7 @@ class Controller(wsgi.Controller):
""" We cannot depend on the db layer to check for admin access
for the auth manager, so we do it here """
if not context.is_admin:
- raise exception.NotAuthorized("Not admin user.")
+ raise exception.NotAuthorized(_("Not admin user."))
def show(self, req, id):
"""Return data about the given account id"""
diff --git a/nova/api/openstack/users.py b/nova/api/openstack/users.py
index c0b7544f9..ae3bf7791 100644
--- a/nova/api/openstack/users.py
+++ b/nova/api/openstack/users.py
@@ -48,7 +48,7 @@ class Controller(wsgi.Controller):
""" We cannot depend on the db layer to check for admin access
for the auth manager, so we do it here """
if not context.is_admin:
- raise exception.NotAuthorized("Not admin user")
+ raise exception.NotAuthorized(_("Not admin user"))
def index(self, req, **kw):
"""Return all users in brief"""