Skip to content

Commit

Permalink
Merge pull request #45 from tzumainn/fixed-ip-fix
Browse files Browse the repository at this point in the history
Fix issue when attaching a node to a network results in no fixed ip
  • Loading branch information
tzumainn authored Sep 9, 2022
2 parents 9fb2867 + bbb5ad5 commit 91ba293
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions esiclient/v1/node_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ def take_action(self, parsed_args):
if neutron_port.fixed_ips and \
len(neutron_port.fixed_ips) > 0:
fixed_ip = neutron_port.fixed_ips[0]['ip_address']
data.append([node_name, port.address,
neutron_port.name,
network_name,
fixed_ip])
data.append([node_name, port.address,
neutron_port.name,
network_name,
fixed_ip])
elif not filter_network:
data.append([node_name, port.address, None, None, None])

Expand Down

0 comments on commit 91ba293

Please sign in to comment.