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

@ -2,7 +2,7 @@ from datetime import datetime, timedelta
import logging
from abc import abstractmethod
import fnmatch
from typing import Tuple, List
from typing import Tuple, List, Any
from app.extensions import db
from app.models.activity import Activity
@ -13,12 +13,12 @@ from app.terraform import BaseAutomation
class BlockMirrorAutomation(BaseAutomation):
patterns: List[str]
def __init__(self) -> None:
def __init__(self, *args: Any, **kwargs: Any) -> None:
"""
Constructor method.
"""
self.patterns = []
super().__init__()
super().__init__(*args, **kwargs)
def automate(self, full: bool = False) -> Tuple[bool, str]:
self.fetch()