From: Adam Israel Date: Tue, 26 Nov 2019 14:23:52 +0000 (-0500) Subject: Update deprecated use of yaml.load X-Git-Tag: v7.0.0rc1~11^2 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=commitdiff_plain;h=9a1bd31f1e8d0a70b8837a057582cb2e82e66194 Update deprecated use of yaml.load Update the deprecated use of `yaml.load` without a loader, replacing it with a call to the sugar method `yaml.safe_load`. See also: https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation Change-Id: Ia5b591349ba6da4260545335315d3d07191f76cf Signed-off-by: Adam Israel --- diff --git a/n2vc/k8s_helm_conn.py b/n2vc/k8s_helm_conn.py index cd15d73..eac34d4 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:]) + value = yaml.safe_load(value[7:]) params2[key] = value values_file = get_random_number() + '.yaml'