Skip to content

Commit

Permalink
Merge pull request #41 from tzumainn/node-network-fix
Browse files Browse the repository at this point in the history
Fix node network list command
  • Loading branch information
tzumainn authored Jul 14, 2022
2 parents bdf24a5 + 5ea1bff commit 8256f49
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 8256f49

Please sign in to comment.