mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
More restrictive test against variable name to allow setting variable starting with _.
This commit is contained in:
parent
2c54fb1339
commit
2fc7c8b460
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ class ModuleArgsParser:
|
|||
# we don't allow users to set them directy in arguments
|
||||
if action not in ('command', 'shell', 'script', 'raw'):
|
||||
for arg in args:
|
||||
if arg.startswith('_') and arg not in ('_raw_params'):
|
||||
if arg.startswith('_ansible_'):
|
||||
raise AnsibleError("invalid parameter specified for action '%s': '%s'" % (action, arg))
|
||||
|
||||
# finally, update the args we're going to return with the ones
|
||||
|
|
Loading…
Reference in a new issue