diff --git a/lib/ansible/parsing/mod_args.py b/lib/ansible/parsing/mod_args.py index abc35a415e3..3d818f1f3e4 100644 --- a/lib/ansible/parsing/mod_args.py +++ b/lib/ansible/parsing/mod_args.py @@ -137,6 +137,8 @@ class ModuleArgsParser: # than those which may be parsed/normalized next final_args = dict() if additional_args: + if not isinstance(additional_args,dict): + raise AnsibleParserError('Complex args should be a dictionary') final_args.update(additional_args) # how we normalize depends if we figured out what the module name is