mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-07-30 11:24:55 +00:00
Fix unit test for synchronize action plugin
- use yaml.safe_load() instead of load() Signed-off-by: Hideki Saito <saito@fgrep.org>
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
trivial:
|
||||||
|
- Fix unit tests of synchronize action plugin to use yaml.safe_load().
|
||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user