We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a71778 commit d877554Copy full SHA for d877554
1 file changed
libraries/cloudharness-common/cloudharness/auth/quota.py
@@ -108,7 +108,7 @@ def _compute_quotas_from_tree(node: QuotaNode):
108
109
110
def attribute_to_quota(attr_value: str):
111
- 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)
112
113
114
def get_user_quotas(application_config: ApplicationConfig = None, user_id: str = None) -> dict:
0 commit comments