From d877554dbaa401a32b5ba893b3599eec282e4d66 Mon Sep 17 00:00:00 2001 From: Filippo Ledda Date: Wed, 20 Dec 2023 14:57:12 +0100 Subject: [PATCH] CH-108 fix quotas regression --- libraries/cloudharness-common/cloudharness/auth/quota.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/cloudharness-common/cloudharness/auth/quota.py b/libraries/cloudharness-common/cloudharness/auth/quota.py index d28811ba..00137ef4 100644 --- a/libraries/cloudharness-common/cloudharness/auth/quota.py +++ b/libraries/cloudharness-common/cloudharness/auth/quota.py @@ -108,7 +108,7 @@ def _compute_quotas_from_tree(node: QuotaNode): def attribute_to_quota(attr_value: str): - return float(re.sub("[^0-9.]", "", attr_value)) + return float(re.sub("[^0-9.]", "", attr_value) if type(attr_value) is str else attr_value) def get_user_quotas(application_config: ApplicationConfig = None, user_id: str = None) -> dict: