summaryrefslogtreecommitdiffstats
path: root/nova/wsgi.py
diff options
context:
space:
mode:
authorMichael Gundlach <michael.gundlach@rackspace.com>2010-08-24 13:37:18 -0400
committerMichael Gundlach <michael.gundlach@rackspace.com>2010-08-24 13:37:18 -0400
commit4d1b2539d2d2f39ca53e9383e317af76dbc71905 (patch)
treeb9f19e139c78a62ea94d522af4dc0763f1846116 /nova/wsgi.py
parentd94eec3d2995c97c38006e4d6177740375860f8f (diff)
downloadnova-4d1b2539d2d2f39ca53e9383e317af76dbc71905.tar.gz
nova-4d1b2539d2d2f39ca53e9383e317af76dbc71905.tar.xz
nova-4d1b2539d2d2f39ca53e9383e317af76dbc71905.zip
OK, break out ternary operator (good to know that it slowed you down to read it)
Diffstat (limited to 'nova/wsgi.py')
-rw-r--r--nova/wsgi.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/nova/wsgi.py b/nova/wsgi.py
index 096d5843f..bec0a7b1c 100644
--- a/nova/wsgi.py
+++ b/nova/wsgi.py
@@ -212,7 +212,10 @@ class Controller(object):
del arg_dict['action']
arg_dict['req'] = req
result = method(**arg_dict)
- return self._serialize(result, req) if type(result) is dict else result
+ if type(result) is dict:
+ return self._serialize(result, req)
+ else:
+ return result
def _serialize(self, data, request):
"""