From: Adam Israel Date: Tue, 26 Nov 2019 14:20:41 +0000 (-0500) Subject: Update to use safe_load X-Git-Tag: v7.0.0rc1~12 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F37%2F8237%2F1;p=osm%2FN2VC.git Update to use safe_load The use of a bare yaml.load with no Loader is deprecated. Use the sugar shortcut safe_load per https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation Change-Id: I856d4263fcf20453157f9d3835289e665d1664bf Signed-off-by: Adam Israel --- diff --git a/tests/base.py b/tests/base.py index c7dad6d..aabf359 100644 --- a/tests/base.py +++ b/tests/base.py @@ -108,7 +108,7 @@ def has_metrics(charm): def get_descriptor(descriptor): desc = None try: - tmp = yaml.load(descriptor) + tmp = yaml.safe_load(descriptor) # Remove the envelope root = list(tmp.keys())[0]