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
This commit is contained in:
eric 2015-09-25 10:50:47 -06:00
parent 83045e3ed7
commit e770744cf1
1 changed files with 1 additions and 1 deletions

View File

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