From 6ddc82dfd8a09ccf311c4de23551ec6b431e634a Mon Sep 17 00:00:00 2001 From: Iain Learmonth Date: Mon, 27 Jun 2022 14:58:28 +0100 Subject: [PATCH] lint: quick fixes --- app/terraform/alarms/proxy_azure_cdn.py | 3 ++- app/terraform/proxy/fastly.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/terraform/alarms/proxy_azure_cdn.py b/app/terraform/alarms/proxy_azure_cdn.py index 5341580..2828f46 100644 --- a/app/terraform/alarms/proxy_azure_cdn.py +++ b/app/terraform/alarms/proxy_azure_cdn.py @@ -25,7 +25,8 @@ class AlarmProxyAzureCdnAutomation(BaseAutomation): ) firing = [x.name[len("bandwidth-out-high-bc-"):] for x in client.alerts.get_all() - if x.name.startswith("bandwidth-out-high-bc-") and x.properties.essentials.monitor_condition == "Fired"] + if x.name.startswith("bandwidth-out-high-bc-") + and x.properties.essentials.monitor_condition == "Fired"] for proxy in Proxy.query.filter( Proxy.provider == "azure_cdn", Proxy.destroyed.is_(None) diff --git a/app/terraform/proxy/fastly.py b/app/terraform/proxy/fastly.py index d423250..7db721d 100644 --- a/app/terraform/proxy/fastly.py +++ b/app/terraform/proxy/fastly.py @@ -115,7 +115,10 @@ class ProxyFastlyAutomation(ProxyAutomation): {% endfor %}{# group #} """ - def __init__(self): + def __init__(self) -> None: + """ + Constructor method. + """ # Requires Flask application context to read configuration self.subgroup_max = min(current_app.config.get("FASTLY_MAX_BACKENDS", 5), 20) super().__init__()