Make sure all tags are in a list before merging for role deps

Fixes #6557
pull/6371/merge
James Cammarata 11 years ago
parent 8a4dca4b86
commit eb7717aa02

@ -234,6 +234,8 @@ class Play(object):
# (dep_vars) to look for tags going forward
def __merge_tags(var_obj):
old_tags = dep_vars.get('tags', [])
if isinstance(old_tags, basestring):
old_tags = [old_tags, ]
if isinstance(var_obj, dict):
new_tags = var_obj.get('tags', [])
if isinstance(new_tags, basestring):

Loading…
Cancel
Save