summaryrefslogtreecommitdiffstats
path: root/keystone/auth
diff options
context:
space:
mode:
authorJamie Lennox <jamielennox@gmail.com>2013-07-17 10:46:25 +1000
committerJamie Lennox <jamielennox@gmail.com>2013-07-17 12:45:52 +1000
commit71edac1585fd3cf6333e8f642339ce63784d4f53 (patch)
tree7c88468ce36b6a4ab02eb1ca993baf83a14ab62d /keystone/auth
parent88c319e6bce98082f9a90b8b27726793d5366326 (diff)
downloadkeystone-71edac1585fd3cf6333e8f642339ce63784d4f53.tar.gz
keystone-71edac1585fd3cf6333e8f642339ce63784d4f53.tar.xz
keystone-71edac1585fd3cf6333e8f642339ce63784d4f53.zip
Fix XML rendering with empty auth payload.
Just add some sensible defaults to places where XML parses for example an empty dictionary as an empty string. Also 'access' shouldn't be considered a plural. Change-Id: I9fb2c4f5c32ed8c2ce8ba4038caaae39590f8c1a
Diffstat (limited to 'keystone/auth')
-rw-r--r--keystone/auth/controllers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystone/auth/controllers.py b/keystone/auth/controllers.py
index cc4c1605..c4ca3f6f 100644
--- a/keystone/auth/controllers.py
+++ b/keystone/auth/controllers.py
@@ -225,7 +225,7 @@ class AuthInfo(object):
:returns: list of auth method names
"""
- return self.auth['identity']['methods']
+ return self.auth['identity']['methods'] or []
def get_method_data(self, method):
"""Get the auth method payload.