mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 07:35:31 +01:00
Replace yaml.load() to yaml.safe_load()
Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
parent
6d3e188c4c
commit
47e99ffca5
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ class SynchronizeTester(object):
|
||||||
metapath = os.path.join(fixturepath, 'meta.yaml')
|
metapath = os.path.join(fixturepath, 'meta.yaml')
|
||||||
with open(metapath, 'rb') as f:
|
with open(metapath, 'rb') as f:
|
||||||
fdata = f.read()
|
fdata = f.read()
|
||||||
test_meta = yaml.load(fdata)
|
test_meta = yaml.safe_load(fdata)
|
||||||
|
|
||||||
# load initial play context vars
|
# load initial play context vars
|
||||||
if '_play_context' in test_meta:
|
if '_play_context' in test_meta:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue