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:
Hideki Saito 2021-10-21 08:18:17 +09:00
parent 1ca54d181d
commit 399f5e2f09
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,3 @@
---
trivial:
- Fix unit tests of synchronize action plugin to use yaml.safe_load().

View file

@ -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: