diff --git a/ansible_rulebook/app.py b/ansible_rulebook/app.py index 5cb3fd3f..a9855330 100644 --- a/ansible_rulebook/app.py +++ b/ansible_rulebook/app.py @@ -61,7 +61,7 @@ def qsize(self): # FIXME(cutwater): Replace parsed_args with clear interface -async def run(parsed_args: argparse.ArgumentParser) -> None: +async def run(parsed_args: argparse.Namespace) -> None: file_monitor = None if parsed_args.worker and parsed_args.websocket_address and parsed_args.id: @@ -187,7 +187,7 @@ def load_vars(parsed_args) -> Dict[str, str]: # TODO(cutwater): Maybe move to util.py def load_rulebook( - parsed_args: argparse.ArgumentParser, variables: Optional[Dict] = None + parsed_args: argparse.Namespace, variables: Optional[Dict] = None ) -> List[RuleSet]: if not parsed_args.rulebook: logger.debug("Loading no rules") diff --git a/ansible_rulebook/engine.py b/ansible_rulebook/engine.py index 609d5883..eea13c8c 100644 --- a/ansible_rulebook/engine.py +++ b/ansible_rulebook/engine.py @@ -260,7 +260,7 @@ async def run_rulesets( ruleset_queues: List[RuleSetQueue], variables: Dict, inventory: str = "", - parsed_args: argparse.ArgumentParser = None, + parsed_args: argparse.Namespace = None, project_data_file: Optional[str] = None, file_monitor: str = None, ) -> bool: