summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDolph Mathews <dolph.mathews@rackspace.com>2011-07-25 10:33:01 -0500
committerJames E. Blair <james.blair@rackspace.com>2011-07-28 09:38:26 -0700
commitfc6deda37b1d2dbc05144ca36b94139a26f1e3ba (patch)
tree0f1f9486ee6dabc35ff315ef12b7c32ee85a4a8b
parentca5efebfd395b3e2c7ebbf3a3a4a7f45c0ad1746 (diff)
Simple change to test gerrit
-rwxr-xr-xkeystone/utils.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/keystone/utils.py b/keystone/utils.py
index effd2d43..c7b6ef96 100755
--- a/keystone/utils.py
+++ b/keystone/utils.py
@@ -35,18 +35,18 @@ def get_app_root():
def get_auth_token(req):
- if "X-Auth-Token" in req.headers:
- return req.headers["X-Auth-Token"]
+ """Returns the auth token from request headers"""
+ return req.headers.get("X-Auth-Token")
def get_auth_user(req):
- if "X-Auth-User" in req.headers:
- return req.headers["X-Auth-User"]
+ """Returns the auth user from request headers"""
+ return req.headers.get("X-Auth-User")
def get_auth_key(req):
- if "X-Auth-Key" in req.headers:
- return req.headers["X-Auth-Key"]
+ """Returns the auth key from request headers"""
+ return req.headers.get("X-Auth-Key")
def wrap_error(func):