From: Dan Wendlandt Date: Mon, 1 Aug 2011 00:46:35 +0000 (-0700) Subject: also remove line that computes portcount, as it is unneeded now that we don't return it X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=55ca7f0432ac9cfe749bef76e9ebb5b69f9bfed6;p=openstack-build%2Fneutron-build.git also remove line that computes portcount, as it is unneeded now that we don't return it --- diff --git a/quantum/api/views/networks.py b/quantum/api/views/networks.py index 393725915..688cbfc47 100644 --- a/quantum/api/views/networks.py +++ b/quantum/api/views/networks.py @@ -52,7 +52,6 @@ class ViewBuilder(object): """Return a detailed model of a network.""" # net-ports might not be present in response from plugin ports = network_data.get('net-ports', None) - portcount = ports and len(ports) or 0 return dict(network=dict(id=network_data['net-id'], name=network_data['net-name']))