mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Improve variable smushing so it only has to be done in one place. This is related to shlex.split being called
on untemplated variables in some rare cases.
This commit is contained in:
@@ -58,9 +58,6 @@ class Task(object):
|
||||
# code to allow for saying "modulename: args" versus "action: modulename args"
|
||||
if x in utils.plugins.module_finder:
|
||||
|
||||
if 'include' in ds and isinstance(ds, basestring):
|
||||
ds['include'] = template.smush_braces(ds['include'])
|
||||
|
||||
if 'action' in ds:
|
||||
raise errors.AnsibleError("multiple actions specified in task %s" % (ds.get('name', ds['action'])))
|
||||
if isinstance(ds[x], dict):
|
||||
|
||||
Reference in New Issue
Block a user