fix(automate): Pass through working directory to superclass
This commit is contained in:
parent
aeca11024a
commit
30b60e9048
4 changed files with 10 additions and 8 deletions
|
@ -120,13 +120,13 @@ class ProxyFastlyAutomation(ProxyAutomation):
|
|||
{% endfor %}{# group #}
|
||||
"""
|
||||
|
||||
def __init__(self) -> None:
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> 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__()
|
||||
super().__init__(*args, **kwargs)
|
||||
|
||||
def import_state(self, state: Optional[Any]) -> None:
|
||||
proxies = Proxy.query.filter(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue