]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
removing a few additional lines that aren't needed once we don't calculate port count
authorDan Wendlandt <dan@nicira.com>
Mon, 1 Aug 2011 01:21:59 +0000 (18:21 -0700)
committerDan Wendlandt <dan@nicira.com>
Mon, 1 Aug 2011 01:21:59 +0000 (18:21 -0700)
quantum/api/views/networks.py

index 688cbfc47b9bc6ce93997713832e2d31c6165f67..eaa9901ff97ef289d4a550910a5644430145cd90 100644 (file)
@@ -50,8 +50,6 @@ class ViewBuilder(object):
 
     def _build_detail(self, network_data):
         """Return a detailed model of a network."""
-        # net-ports might not be present in response from plugin
-        ports = network_data.get('net-ports', None)
         return dict(network=dict(id=network_data['net-id'],
                                 name=network_data['net-name']))