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
This commit is contained in:
Tobias Urdin 2023-12-21 11:36:26 +01:00
parent 185cb40545
commit 53c82bbff7

View File

@ -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):