mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 15:15:26 +01: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:
parent
1ca54d181d
commit
399f5e2f09
2 changed files with 4 additions and 1 deletions
|
|
@ -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')
|
||||
with open(metapath, 'rb') as f:
|
||||
fdata = f.read()
|
||||
test_meta = yaml.load(fdata)
|
||||
test_meta = yaml.safe_load(fdata)
|
||||
|
||||
# load initial play context vars
|
||||
if '_play_context' in test_meta:
|
||||
|
|
|
|||
Loading…
Reference in a new issue