Skip to content

Commit a570862

Browse files
author
Thomas Goodwin
committed
API inconsistency; server would respond with an array rather than a key whose value is a list
1 parent 476abd5 commit a570862

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rest/port.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def get(self, *args):
5656
else:
5757
raise ResourceNotFound('port', name)
5858
else:
59-
self.write(json.dumps(self.format_ports(obj.ports)))
59+
self.write(json.dumps({'ports': self.format_ports(obj.ports)}))
6060
except ResourceNotFound, e:
6161
logging.debug('Resource not found %s' % str(e), exc_info=1)
6262
self.set_status(404)

0 commit comments

Comments
 (0)