Skip to content

Commit bbb5ad5

Browse files
committed
Fix issue when attaching a node to a network results in no fixed ip
There was a minor bug introduced recently; a misaligned indent meant that if a port did not have a fixed IP, it would not be represented in the node network list. This fixes that issue.
1 parent 9fb2867 commit bbb5ad5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

esiclient/v1/node_network.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ def take_action(self, parsed_args):
9595
if neutron_port.fixed_ips and \
9696
len(neutron_port.fixed_ips) > 0:
9797
fixed_ip = neutron_port.fixed_ips[0]['ip_address']
98-
data.append([node_name, port.address,
99-
neutron_port.name,
100-
network_name,
101-
fixed_ip])
98+
data.append([node_name, port.address,
99+
neutron_port.name,
100+
network_name,
101+
fixed_ip])
102102
elif not filter_network:
103103
data.append([node_name, port.address, None, None, None])
104104

0 commit comments

Comments
 (0)