mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-29 00:00:35 +00:00
fix: avoid manipulation of an existing task object by a shallow copy (#118)
Fixes: https://github.com/emsecrist/ansible-later-issue-117
This commit is contained in:
parent
c98a7b5c42
commit
2d37210249
@ -1,6 +1,7 @@
|
||||
"""Standard definition."""
|
||||
|
||||
import codecs
|
||||
import copy
|
||||
import importlib
|
||||
import inspect
|
||||
import os
|
||||
@ -118,7 +119,7 @@ class StandardBase(object, metaclass=StandardExtendedMeta):
|
||||
if not candidate.faulty:
|
||||
try:
|
||||
normalized = normalize_task(
|
||||
task, candidate.path, settings["ansible"]["custom_modules"]
|
||||
copy.copy(task), candidate.path, settings["ansible"]["custom_modules"]
|
||||
)
|
||||
except LaterError as ex:
|
||||
e = ex.original
|
||||
|
Loading…
Reference in New Issue
Block a user