Update floating IP tables instance URL check

A port can be given a device owner of 'compute:nova' and associated with
a floating IP; which will fail the current check in the floating IPs
table to attempt to resolve an instance details URL.

This patch updates the condition to actually check for the required variable.

Change-Id: Ic5f78525ba41d47c1a548aeab73933f962343ebd
Closes-bug:  1645683
This commit is contained in:
Rob Cresswell 2016-11-29 14:08:09 +00:00
parent 2394397bfd
commit c1873ea4d9
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ def get_instance_info(fip):
def get_instance_link(datum):
if datum.instance_type == 'compute':
if getattr(datum, 'instance_id'):
return reverse("horizon:project:instances:detail",
args=(datum.instance_id,))
else: