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:
parent
9b41f8774c
commit
dd7402536e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue