Use copy.copy() instead of the copy() method, which might not exist
This commit is contained in:
parent
14ea834823
commit
91a90def13
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
import abc
|
import abc
|
||||||
|
import copy
|
||||||
from collections.abc import MutableMapping
|
from collections.abc import MutableMapping
|
||||||
|
|
||||||
from ansible import constants as C
|
from ansible import constants as C
|
||||||
|
@ -145,7 +146,7 @@ class VariableStorage(MutableMapping):
|
||||||
data = {}
|
data = {}
|
||||||
for v in variables:
|
for v in variables:
|
||||||
if v in self._script_vars:
|
if v in self._script_vars:
|
||||||
se = (True, self._script_vars[v].copy())
|
se = (True, copy.copy(self._script_vars[v]))
|
||||||
else:
|
else:
|
||||||
se = (False, None)
|
se = (False, None)
|
||||||
data[v] = se
|
data[v] = se
|
||||||
|
|
Loading…
Reference in a new issue