lint: quick fixes
This commit is contained in:
parent
f16df422f1
commit
6ddc82dfd8
2 changed files with 6 additions and 2 deletions
|
@ -25,7 +25,8 @@ class AlarmProxyAzureCdnAutomation(BaseAutomation):
|
||||||
)
|
)
|
||||||
firing = [x.name[len("bandwidth-out-high-bc-"):]
|
firing = [x.name[len("bandwidth-out-high-bc-"):]
|
||||||
for x in client.alerts.get_all()
|
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(
|
for proxy in Proxy.query.filter(
|
||||||
Proxy.provider == "azure_cdn",
|
Proxy.provider == "azure_cdn",
|
||||||
Proxy.destroyed.is_(None)
|
Proxy.destroyed.is_(None)
|
||||||
|
|
|
@ -115,7 +115,10 @@ class ProxyFastlyAutomation(ProxyAutomation):
|
||||||
{% endfor %}{# group #}
|
{% endfor %}{# group #}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self) -> None:
|
||||||
|
"""
|
||||||
|
Constructor method.
|
||||||
|
"""
|
||||||
# Requires Flask application context to read configuration
|
# Requires Flask application context to read configuration
|
||||||
self.subgroup_max = min(current_app.config.get("FASTLY_MAX_BACKENDS", 5), 20)
|
self.subgroup_max = min(current_app.config.get("FASTLY_MAX_BACKENDS", 5), 20)
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue