change the floating_ips tables.py argument

the floating_ips tables.py use the argument 'volume = None',
it's a mistake, so change it to 'fip = None' as the argument

Change-Id: I4a2b3ecb0f227e699a61321a0dfd0aba0395c713
This commit is contained in:
zhu.rong 2015-03-25 03:47:10 -04:00
parent 9b41f8774c
commit dd7402536e
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class AllocateIP(tables.LinkAction):
def single(self, data_table, request, *args):
return shortcuts.redirect('horizon:project:access_and_security:index')
def allowed(self, request, volume=None):
def allowed(self, request, fip=None):
usages = quotas.tenant_quota_usages(request)
if usages['floating_ips']['available'] <= 0:
if "disabled" not in self.classes: