From bbb5ad5c9c9077c93804f1ea00ac8f61867d1feb Mon Sep 17 00:00:00 2001 From: Tzu-Mainn Chen Date: Fri, 9 Sep 2022 14:28:20 +0000 Subject: [PATCH] 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. --- esiclient/v1/node_network.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/esiclient/v1/node_network.py b/esiclient/v1/node_network.py index fe26a5c..19c31db 100644 --- a/esiclient/v1/node_network.py +++ b/esiclient/v1/node_network.py @@ -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])