From b55431706ed483ff750f203e100c5079e96be412 Mon Sep 17 00:00:00 2001 From: Adam Israel Date: Tue, 26 Nov 2019 09:20:41 -0500 Subject: [PATCH] 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 --- tests/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.17.1