From f49f885b32f750c19cda619fa0290ea36503dc98 Mon Sep 17 00:00:00 2001 From: Christoph Fiehe Date: Tue, 12 Sep 2017 16:32:22 +0200 Subject: [PATCH] Manila-UI breaks Horizon's "Network" panel group Since the OpenStack Pike release, the Manila UI dashboard integration for Horizon breaks the "Network" panel group, causing the "Network Topology" panel to fail and the buttons "Create Network", "Create Router", "Create Security Group" and "Allocate IP To Project" to silently disappear from the panels "Networks", "Routers", "Security Groups" and "Floating IPs". This commit adds the parameter "targets" to the method "tenant_quota_usages" that was introduced by the fix of Horizon Bug#1675504. Closes-Bug #1715540 Signed-off-by: Christoph Fiehe Change-Id: I6d8f9ae2ae03577e63cc985d37fcbba824d68a9d --- manila_ui/dashboards/project/shares/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manila_ui/dashboards/project/shares/__init__.py b/manila_ui/dashboards/project/shares/__init__.py index 3c024017..7ce83ce5 100644 --- a/manila_ui/dashboards/project/shares/__init__.py +++ b/manila_ui/dashboards/project/shares/__init__.py @@ -143,9 +143,9 @@ def get_disabled_quotas(f, request): @wrap(quotas.tenant_quota_usages) -def tenant_quota_usages(f, request, tenant_id=None): +def tenant_quota_usages(f, request, tenant_id=None, targets=None): - usages = f(request, tenant_id) + usages = f(request, tenant_id, targets) if 'shares' not in _get_manila_disabled_quotas(request): shares = manila.share_list(request)