Commit 1d565254 authored by Stavros Sachtouris's avatar Stavros Sachtouris
Browse files

Minor fixes

parent 11cc86af
......@@ -372,7 +372,7 @@ class port_list(_init_network, _optional_json):
def _run(self):
net = self.client.list_ports()
self._print(net, self.print_dict)
def main(self):
super(self.__class__, self)._run()
......@@ -285,7 +285,7 @@ class NetworkClient(NetworkRestClient):
def get_port_details(self, port_id):
r = self.ports_get(port_id, success=201)
return r.json['ports']
return r.json['port']
def delete_port(self, port_id):
r = self.ports_delete(port_id, success=204)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment