Commit a498876b by James Cammarata

Make sure playbook includes use unique var dictionaries before modification

parent 5fec11f5
...@@ -74,7 +74,9 @@ class PlaybookInclude(Base, Conditional, Taggable): ...@@ -74,7 +74,9 @@ class PlaybookInclude(Base, Conditional, Taggable):
# finally, update each loaded playbook entry with any variables specified # finally, update each loaded playbook entry with any variables specified
# on the included playbook and/or any tags which may have been set # on the included playbook and/or any tags which may have been set
for entry in pb._entries: for entry in pb._entries:
entry.vars.update(new_obj.vars) temp_vars = entry.vars.copy()
temp_vars.update(new_obj.vars)
entry.vars = temp_vars
entry.tags = list(set(entry.tags).union(new_obj.tags)) entry.tags = list(set(entry.tags).union(new_obj.tags))
return pb return pb
......
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