From eb78ba02b3c13b9bbc7361dc807871bf7f3642ef Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Tue, 16 Dec 2025 13:55:35 +0330 Subject: [PATCH] import - quota id in rancher dashboard --- apps/herd/services/rancher_dashboard_service.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/herd/services/rancher_dashboard_service.py b/apps/herd/services/rancher_dashboard_service.py index b0346ab..68b43d9 100644 --- a/apps/herd/services/rancher_dashboard_service.py +++ b/apps/herd/services/rancher_dashboard_service.py @@ -114,7 +114,11 @@ class RancherDashboardService: rancher_data_by_quota_usage = [] for stat in available_stats: rancher_quota_data = rancher_quota_weight(rancher=rancher, quota=stat.quota, quota_stat=stat) - rancher_quota_data.update({'product': stat.quota.product.name, 'product_id': stat.quota.product.id}) + rancher_quota_data.update({ + 'product': stat.quota.product.name, + 'product_id': stat.quota.product.id, + 'quota_id': stat.quota.id, + }) rancher_data_by_quota_usage.append(rancher_quota_data) product_list = set(stat.quota.product.id for stat in quota_stat)