mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #9810 from mscherer/fix_7732
Do not use the variable name as a key for the result of the module
This commit is contained in:
commit
d09b64884f
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class ActionModule(object):
|
|||
result = dict(msg=args['msg'])
|
||||
elif 'var' in args and not utils.LOOKUP_REGEX.search(args['var']):
|
||||
results = template.template(self.basedir, args['var'], inject, convert_bare=True)
|
||||
result[args['var']] = results
|
||||
result['var'] = { args['var']: results }
|
||||
|
||||
# force flag to make debug output module always verbose
|
||||
result['verbose_always'] = True
|
||||
|
|
Loading…
Reference in a new issue