Skip to content

Commit

Permalink
Fix node network list command
Browse files Browse the repository at this point in the history
The neutron port command retrieves a generator; we need it to be a list.
  • Loading branch information
tzumainn committed Jul 14, 2022
1 parent bdf24a5 commit 5ea1bff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions esiclient/v1/node_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []

Expand Down

0 comments on commit 5ea1bff

Please sign in to comment.