Make sure all tags are in a list before merging for role deps
Fixes #6557
This commit is contained in:
parent
8a4dca4b86
commit
eb7717aa02
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue