From ed7a3527b5b440457c1d764f650882acb7ec2544 Mon Sep 17 00:00:00 2001 From: Dan Wendlandt Date: Sat, 15 Oct 2011 20:56:24 -0700 Subject: [PATCH] fix minor double-serialization bug in client.py bug 875468 Change-Id: If79d747c4a2796198e3d968f6bc5fbdca2621f73 --- quantum/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quantum/client.py b/quantum/client.py index 48f9b568f..cf72f8a7e 100644 --- a/quantum/client.py +++ b/quantum/client.py @@ -229,7 +229,7 @@ class Client(object): elif type(data) is dict: return Serializer().serialize(data, self.content_type()) else: - raise Exception("unable to deserialize object of type = '%s'" \ + raise Exception("unable to serialize object of type = '%s'" \ % type(data)) def deserialize(self, data, status_code): @@ -308,7 +308,6 @@ class Client(object): """ Creates a new port on a given network """ - body = self.serialize(body) return self.do_request("POST", self.ports_path % (network), body=body, exception_args={"net_id": network}) -- 2.45.2