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

Addresses #4635 add list instead of join

This commit is contained in:
James Tanner 2013-11-05 14:44:27 -05:00
parent 2b5005687a
commit d93780bc8a

View file

@ -265,7 +265,7 @@ class Play(object):
if type(dep_vars['when']) is str:
tmpcond.append(dep_vars['when'])
elif type(dep_vars['when']) is list:
tmpcond.join(dep_vars['when'])
tmpcond += dep_vars['when']
if len(tmpcond) > 0:
dep_vars['when'] = tmpcond