From dd7402536eb0a0cfe33430e8edf1bd35e5944d37 Mon Sep 17 00:00:00 2001 From: "zhu.rong" Date: Wed, 25 Mar 2015 03:47:10 -0400 Subject: [PATCH] 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 --- .../project/access_and_security/floating_ips/tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py index b13a4ad453..1ffaaa22ed 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py +++ b/openstack_dashboard/dashboards/project/access_and_security/floating_ips/tables.py @@ -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: