diff options
| author | Brian Waldon <brian.waldon@rackspace.com> | 2011-07-25 15:08:26 -0400 |
|---|---|---|
| committer | Brian Waldon <brian.waldon@rackspace.com> | 2011-07-25 15:08:26 -0400 |
| commit | 28cc235edebf1986102cb51bebaacfa0c0bad984 (patch) | |
| tree | 78a1e9e90adcac336bf92e4718dd821b7198b934 /nova/api | |
| parent | bc800b16cf304811802d1e441823cffff610fc6f (diff) | |
reverting some wsgi-related changes
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/wsgi.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nova/api/openstack/wsgi.py b/nova/api/openstack/wsgi.py index 0463020c8..7842b821a 100644 --- a/nova/api/openstack/wsgi.py +++ b/nova/api/openstack/wsgi.py @@ -487,10 +487,12 @@ class Resource(wsgi.Application): action_result = self.dispatch(request, action, args) except webob.exc.HTTPException as ex: LOG.info(_("HTTP exception thrown: %s"), unicode(ex)) - return faults.Fault(ex) + action_result = faults.Fault(ex) - if isinstance(action_result, dict) or action_result is None: - response = self.serializer.serialize(action_result, accept, action) + if type(action_result) is dict or action_result is None: + response = self.serializer.serialize(action_result, + accept, + action=action) else: response = action_result |
