Skip to content

Commit

Permalink
Merge pull request ansible#6150 from hkariti/fix_join_bug
Browse files Browse the repository at this point in the history
Fix incorrect use of .join on list causing a traceback
  • Loading branch information
jimi-c committed Feb 26, 2014
2 parents f5359c3 + ae9c0d8 commit b758ed9
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 @@ -278,7 +278,7 @@ def _build_role_dependencies(self, roles, dep_stack, passed_vars={}, level=0):
if type(passed_vars['when']) is str:
tmpcond.append(passed_vars['when'])
elif type(passed_vars['when']) is list:
tmpcond.join(passed_vars['when'])
tmpcond += passed_vars['when']

if type(dep_vars['when']) is str:
tmpcond.append(dep_vars['when'])
Expand Down

0 comments on commit b758ed9

Please sign in to comment.