Skip to content

Commit

Permalink
CH-108 fix quotas regression
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Dec 20, 2023
1 parent 8a71778 commit d877554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/cloudharness-common/cloudharness/auth/quota.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d877554

Please sign in to comment.