summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Wendlandt <dan@nicira.com>2012-05-16 20:19:36 -0700
committerDan Wendlandt <dan@nicira.com>2012-05-16 20:19:36 -0700
commita5d06c2d12135f91aa2616b3bb8d28aa14c217ca (patch)
treedd5630d1dbc0a68d287cf33704b03b82645a8ea9
parentf00b4e060008d319ae813710deec9866f9e93335 (diff)
fixes typo that completely broken Quantum/Nova integration
bug 1000887 fixes bug introduced in ba76b954e69de56f76f9db5cade1780bc351be67 that prevented the serializer in the Quantum client code from correctly serializing request body data. Instead, the serializer always returned None, meaning that requests would have no body, causing the Quantum server to return a 400. Change-Id: I410fb408435da8774f418f0e62ffb59eac2354f3
-rw-r--r--nova/network/quantum/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/network/quantum/client.py b/nova/network/quantum/client.py
index f57b0fa93..69f525324 100644
--- a/nova/network/quantum/client.py
+++ b/nova/network/quantum/client.py
@@ -35,7 +35,7 @@ class JSONSerializer(object):
the standard serializer from the quantum library.
"""
def serialize(self, data, content_type):
- jsonutils.dumps(data)
+ return jsonutils.dumps(data)
def deserialize(self, data, content_type):
return jsonutils.loads(data)