Skip to content

Commit

Permalink
skip drive quota setting if current zero
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseibel committed Aug 27, 2024
1 parent 7ae48d8 commit 68082c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions endorsement/dao/shared_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,13 @@ def reconcile_drive_quota(
sdr, no_subscription_quota=no_subscription_quota
)

if quota_actual == 0:
logger.info(
f"reconcile: skip set drive for {sdr.shared_drive.drive_id} "
"as the drive has {quota_actual} quota set"
)
return

if not quota_correct:
logger.info(
f"reconcile: skip set drive for {sdr.shared_drive.drive_id} "
Expand Down

0 comments on commit 68082c9

Please sign in to comment.