lint: tidy up code some more, pylint is enforcing
This commit is contained in:
parent
66b3ccc0f0
commit
61564e8c01
17 changed files with 72 additions and 38 deletions
|
@ -6,6 +6,7 @@ from flask import current_app
|
|||
|
||||
from app import app
|
||||
from app.alarms import get_or_create_alarm
|
||||
from app.brm.brn import BRN
|
||||
from app.extensions import db
|
||||
from app.models.mirrors import Proxy
|
||||
from app.models.alarms import AlarmState
|
||||
|
@ -14,7 +15,7 @@ from app.terraform import BaseAutomation
|
|||
|
||||
def _cloudfront_quota() -> None:
|
||||
alarm = get_or_create_alarm(
|
||||
f"brn:{current_app.config['GLOBAL_NAMESPACE']}:0:mirror:cloudfront:quota/distributions",
|
||||
BRN.from_str(f"brn:{current_app.config['GLOBAL_NAMESPACE']}:0:mirror:cloudfront:quota/distributions"),
|
||||
"quota-usage"
|
||||
)
|
||||
alarm.last_updated = datetime.datetime.utcnow()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue