From 55ca7f0432ac9cfe749bef76e9ebb5b69f9bfed6 Mon Sep 17 00:00:00 2001 From: Dan Wendlandt Date: Sun, 31 Jul 2011 17:46:35 -0700 Subject: [PATCH] also remove line that computes portcount, as it is unneeded now that we don't return it --- quantum/api/views/networks.py | 1 - 1 file changed, 1 deletion(-) 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'])) -- 2.45.2