mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07: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:
parent
af2fb56a10
commit
6fdfbb1a34
5 changed files with 27 additions and 18 deletions
|
@ -18,7 +18,7 @@
|
|||
import ansible.inventory
|
||||
import ansible.constants as C
|
||||
import ansible.runner
|
||||
from ansible.utils.template import template, smush_braces
|
||||
from ansible.utils.template import template
|
||||
from ansible import utils
|
||||
from ansible import errors
|
||||
import ansible.callbacks
|
||||
|
@ -159,7 +159,7 @@ class PlayBook(object):
|
|||
# a playbook (list of plays) decided to include some other list of plays
|
||||
# from another file. The result is a flat list of plays in the end.
|
||||
|
||||
tokens = shlex.split(smush_braces(play['include']))
|
||||
tokens = shlex.split(play['include'])
|
||||
|
||||
incvars = vars.copy()
|
||||
if 'vars' in play:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue