mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
tags lists are properly uniqued and joined now, also avoids type issues when passed as list/set or strings
Signed-off-by: Brian Coca <briancoca+ansible@gmail.com>
This commit is contained in:
parent
fe07ebc801
commit
8e7a384fcc
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ class Play(object):
|
|||
included_dep_vars = included_role_dep[2]
|
||||
if included_dep_name == dep:
|
||||
if "tags" in included_dep_vars:
|
||||
included_dep_vars["tags"] = list(set(included_dep_vars["tags"] + passed_vars["tags"]))
|
||||
included_dep_vars["tags"] = list(set(included_dep_vars["tags"]).union(set(passed_vars["tags"])))
|
||||
else:
|
||||
included_dep_vars["tags"] = passed_vars["tags"][:]
|
||||
|
||||
|
|
Loading…
Reference in a new issue