From 0d648c93b6f03dc221a9e34bfa021003e17f1992 Mon Sep 17 00:00:00 2001 From: tierno Date: Mon, 25 Nov 2019 09:23:16 +0000 Subject: [PATCH] Revert change 8b1bcf0 Change-Id: I85fd9a038aa123eaf9b216e9d15f709cef7a808a Signed-off-by: tierno --- n2vc/k8s_helm_conn.py | 2 +- tests/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/n2vc/k8s_helm_conn.py b/n2vc/k8s_helm_conn.py index 4e6c4c5..cd15d73 100644 --- a/n2vc/k8s_helm_conn.py +++ b/n2vc/k8s_helm_conn.py @@ -894,7 +894,7 @@ class K8sHelmConnector(K8sConnector): for key in params: value = params.get(key) if '!!yaml' in str(value): - value = yaml.load(value[7:], Loader=yaml.SafeLoader) + value = yaml.load(value[7:]) params2[key] = value values_file = get_random_number() + '.yaml' diff --git a/tests/base.py b/tests/base.py index e40338f..c7dad6d 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, Loader=yaml.Loader) + tmp = yaml.load(descriptor) # Remove the envelope root = list(tmp.keys())[0] -- 2.25.1