Commit 8e7a384f by Brian Coca Committed by James Cammarata

tags lists are properly uniqued and joined now, also avoids type issues when…

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>
parent fe07ebc8
......@@ -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"][:]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment