mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
explain 'bare variables' (#49577)
This commit is contained in:
parent
b6220ce16a
commit
597c258e0e
2 changed files with 4 additions and 2 deletions
2
changelogs/fragments/explain_bare.yml
Normal file
2
changelogs/fragments/explain_bare.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- explain 'bare variables' in error message
|
|
@ -145,8 +145,8 @@ class ModuleArgsParser:
|
|||
if templar._contains_vars(additional_args):
|
||||
final_args['_variable_params'] = additional_args
|
||||
else:
|
||||
raise AnsibleParserError("Complex args containing variables cannot use bare variables, and must use the full variable style "
|
||||
"('{{var_name}}')")
|
||||
raise AnsibleParserError("Complex args containing variables cannot use bare variables (without Jinja2 delimiters), "
|
||||
"and must use the full variable style ('{{var_name}}')")
|
||||
elif isinstance(additional_args, dict):
|
||||
final_args.update(additional_args)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue