From: Dan Wendlandt Date: Sun, 16 Oct 2011 03:56:24 +0000 (-0700) Subject: fix minor double-serialization bug in client.py X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ed7a3527b5b440457c1d764f650882acb7ec2544;p=openstack-build%2Fneutron-build.git fix minor double-serialization bug in client.py bug 875468 Change-Id: If79d747c4a2796198e3d968f6bc5fbdca2621f73 --- 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})