Skip to content

Commit

Permalink
fix minor double-serialization bug in client.py
Browse files Browse the repository at this point in the history
bug 875468

Change-Id: If79d747c4a2796198e3d968f6bc5fbdca2621f73
  • Loading branch information
Dan Wendlandt committed Oct 27, 2011
1 parent f9a3901 commit ed7a352
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions quantum/client.py
Expand Up @@ -229,7 +229,7 @@ def serialize(self, data):
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):
Expand Down Expand Up @@ -308,7 +308,6 @@ def create_port(self, network, body=None):
"""
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})

Expand Down

0 comments on commit ed7a352

Please sign in to comment.