1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

support for quotes strings in command module (via posix=False), related fixes to keep other things from breaking

This commit is contained in:
Matthew Williams 2012-03-30 09:44:00 -07:00 committed by Michael DeHaan
parent f82cc59d43
commit 99d5796605

View file

@ -370,8 +370,8 @@ class PlayBook(object):
if type(vars_files) != list:
raise errors.AnsibleError("vars_files must be a list")
for host in host_list:
cache_vars = SETUP_CACHE.get(host,{})
SETUP_CACHE[host] = {}
cache_vars = SETUP_CACHE.get(host,{})
SETUP_CACHE[host] = cache_vars
for filename in vars_files:
if type(filename) == list:
# loop over all filenames, loading the first one, and failing if # none found