Skip to content

Commit

Permalink
Merge pull request #160 from nerc-project/fix-validate-obj-quota-comp…
Browse files Browse the repository at this point in the history
…arison

validate: fix object store quota value comparison
  • Loading branch information
jtriley authored May 14, 2024
2 parents 92938e1 + 8b3b651 commit ae311f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def handle(self, *args, **options):
current_value = quota.get(key, None)
if key == obj_key and expected_value <= 0:
expected_obj_value = 1
current_value = allocator.object(project_id).head_account().get(obj_key)
current_value = int(allocator.object(project_id).head_account().get(obj_key))
if current_value != expected_obj_value:
failed_validation = True
msg = (f'Value for quota for {attr.name} = {current_value} does not match expected'
Expand Down

0 comments on commit ae311f8

Please sign in to comment.