also remove line that computes portcount, as it is unneeded now that we don't return it

This commit is contained in:
Dan Wendlandt 2011-07-31 17:46:35 -07:00
parent 2ab7ae449b
commit 55ca7f0432
1 changed files with 0 additions and 1 deletions

View File

@ -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']))