summaryrefslogtreecommitdiff
path: root/nova/api/openstack/auth.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/api/openstack/auth.py')
-rw-r--r--nova/api/openstack/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/auth.py b/nova/api/openstack/auth.py
index 36c0078ebe..f51078eb39 100644
--- a/nova/api/openstack/auth.py
+++ b/nova/api/openstack/auth.py
@@ -50,7 +50,7 @@ class NoAuthMiddlewareBase(base_wsgi.Middleware):
token = req.headers['X-Auth-Token']
user_id, _sep, project_id = token.partition(':')
project_id = project_id or user_id
- remote_address = getattr(req, 'remote_address', '127.0.0.1')
+ remote_address = getattr(req, 'remote_addr', '127.0.0.1')
if CONF.api.use_forwarded_for:
remote_address = req.headers.get('X-Forwarded-For', remote_address)
is_admin = always_admin or (user_id == 'admin')