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

@ -1,3 +1,5 @@
from typing import Any
from flask import current_app
from app.terraform.list import ListAutomation
@ -52,7 +54,7 @@ class ListGitlabAutomation(ListAutomation):
{% endfor %}
"""
def __init__(self) -> None:
super().__init__()
def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
if 'GITLAB_URL' in current_app.config:
self.template_parameters.append("gitlab_url")