From 5ea1bff7339e1b40d95767ea64833fd5df7da532 Mon Sep 17 00:00:00 2001 From: Tzu-Mainn Chen Date: Thu, 14 Jul 2022 16:17:55 -0400 Subject: [PATCH] Fix node network list command The neutron port command retrieves a generator; we need it to be a list. --- esiclient/v1/node_network.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/esiclient/v1/node_network.py b/esiclient/v1/node_network.py index 89f4762..e0f15e8 100644 --- a/esiclient/v1/node_network.py +++ b/esiclient/v1/node_network.py @@ -60,10 +60,11 @@ def take_action(self, parsed_args): filter_network = None if parsed_args.network: filter_network = neutron_client.find_network(parsed_args.network) - neutron_ports = neutron_client.ports(network_id=filter_network.id) + neutron_ports = list(neutron_client.ports( + network_id=filter_network.id)) else: - networks = neutron_client.networks() - neutron_ports = neutron_client.ports() + networks = list(neutron_client.networks()) + neutron_ports = list(neutron_client.ports()) data = []