Skip to content

Commit

Permalink
Addresses ansible#4635 add list instead of join
Browse files Browse the repository at this point in the history
  • Loading branch information
jctanner committed Nov 5, 2013
1 parent 2b50056 commit d93780b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/playbook/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def _build_role_dependencies(self, roles, dep_stack, passed_vars={}, level=0):
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
Expand Down

0 comments on commit d93780b

Please sign in to comment.