diff --git a/apps/ops/ansible/runner.py b/apps/ops/ansible/runner.py index fe23b0d6d..7931b72ee 100644 --- a/apps/ops/ansible/runner.py +++ b/apps/ops/ansible/runner.py @@ -165,6 +165,8 @@ class AdHocRunner: ) def clean_args(self, module, args): + if not args: + return '' if module not in self.command_modules_choices: return args if isinstance(args, str):