From 53c82bbff75f646654585f66f666cfd1f1b53987 Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Thu, 21 Dec 2023 11:36:26 +0100 Subject: [PATCH] Fix floating IP associated to unbound port This fixes a bug where a floating IP associated to a unbound port would now show the fixed IP of that port. Closes-Bug: 2047132 Change-Id: I4fbbcc4c0509e74ce3c46fa55e006c5bc3837be3 --- openstack_dashboard/dashboards/project/floating_ips/tables.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openstack_dashboard/dashboards/project/floating_ips/tables.py b/openstack_dashboard/dashboards/project/floating_ips/tables.py index dbaedc08c2..82a0ee8d9d 100644 --- a/openstack_dashboard/dashboards/project/floating_ips/tables.py +++ b/openstack_dashboard/dashboards/project/floating_ips/tables.py @@ -248,9 +248,7 @@ def get_instance_info(fip): 'fixed_ip': fip.fixed_ip}) if fip.instance_type == 'loadbalancer': return _("Load Balancer VIP %s") % fip.fixed_ip - if fip.instance_type: - return fip.fixed_ip - return None + return getattr(fip, 'fixed_ip', None) def get_instance_link(datum):