diff options
| author | Michael Gundlach <michael.gundlach@rackspace.com> | 2010-08-24 13:37:18 -0400 |
|---|---|---|
| committer | Michael Gundlach <michael.gundlach@rackspace.com> | 2010-08-24 13:37:18 -0400 |
| commit | 4d1b2539d2d2f39ca53e9383e317af76dbc71905 (patch) | |
| tree | b9f19e139c78a62ea94d522af4dc0763f1846116 /nova | |
| parent | d94eec3d2995c97c38006e4d6177740375860f8f (diff) | |
OK, break out ternary operator (good to know that it slowed you down to read it)
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/wsgi.py | 5 |
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): """ |
