fix(automate): Pass through working directory to superclass

This commit is contained in:
Iain Learmonth 2022-11-28 21:18:56 +00:00
parent aeca11024a
commit 30b60e9048
4 changed files with 10 additions and 8 deletions

View file

@ -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(