diff options
| author | Dolph Mathews <dolph.mathews@rackspace.com> | 2011-07-25 10:33:01 -0500 |
|---|---|---|
| committer | James E. Blair <james.blair@rackspace.com> | 2011-07-28 09:38:26 -0700 |
| commit | fc6deda37b1d2dbc05144ca36b94139a26f1e3ba (patch) | |
| tree | 0f1f9486ee6dabc35ff315ef12b7c32ee85a4a8b | |
| parent | ca5efebfd395b3e2c7ebbf3a3a4a7f45c0ad1746 (diff) | |
Simple change to test gerrit
| -rwxr-xr-x | keystone/utils.py | 12 |
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): |
