Skip to content

Commit

Permalink
quell admin email if no move drive
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseibel committed Aug 30, 2024
1 parent d670fc9 commit 2bf14b6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions endorsement/dao/shared_drive.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,12 @@ def reconcile_drive_quota(
# expected to have the subsidized quota size
if (sdr.shared_drive.drive_quota.quota_limit > no_subscription_quota
and sdr.subscription is None):
notify_admin_over_quota_missing_subscription(
drive_name=sdr.shared_drive.drive_name,
drive_id=sdr.shared_drive.drive_id,
quota_correct=quota_correct)
if not self.no_move_drive:
notify_admin_over_quota_missing_subscription(
drive_name=sdr.shared_drive.drive_name,
drive_id=sdr.shared_drive.drive_id,
quota_correct=quota_correct)

logger.info(
f"reconcile: skip set drive for {sdr.shared_drive.drive_id} "
"as there is no active subscription")
Expand Down

0 comments on commit 2bf14b6

Please sign in to comment.