From e770744cf1ddadb37be592daa0eb79a298acd69d Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 25 Sep 2015 10:50:47 -0600 Subject: [PATCH] lbaas associate fip to vip table action bug The associate fip to a lbaas vip incorrectly shows up as a table action, when no vip is setup yet. This does not make sense, correcting the default table action allowed check. Change-Id: I261b80fa461aaa5ce1b5febf48c1056a277ebf5a Closes-bug: #1499800 --- openstack_dashboard/dashboards/project/loadbalancers/tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/dashboards/project/loadbalancers/tables.py b/openstack_dashboard/dashboards/project/loadbalancers/tables.py index 1d08eb4ad6..51f57d189d 100644 --- a/openstack_dashboard/dashboards/project/loadbalancers/tables.py +++ b/openstack_dashboard/dashboards/project/loadbalancers/tables.py @@ -316,7 +316,7 @@ class AddVIPFloatingIP(policy.PolicyTargetMixin, tables.LinkAction): if hasattr(pool, "vip") and pool.vip: vip = pool.vip return not (hasattr(vip, "fip") and vip.fip) - return True + return False def get_link_url(self, datum): base_url = reverse(self.url)