X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fdescriptor_topics.py;h=95ced0d62f93c402ebeb2d3459d270f9bcab212b;hp=d01dc1396a772512023e4b32df6f5c35bf6ff22e;hb=b19cadcf9ff2169f34f6db79b866bad91f9c8aed;hpb=2125a31711a94d2c21c24fe4aa768a2f3823f3cb diff --git a/osm_nbi/descriptor_topics.py b/osm_nbi/descriptor_topics.py index d01dc13..95ced0d 100644 --- a/osm_nbi/descriptor_topics.py +++ b/osm_nbi/descriptor_topics.py @@ -264,7 +264,7 @@ class DescriptorTopic(BaseTopic): indata = json.load(content) else: error_text = "Invalid yaml format " - indata = yaml.load(content) + indata = yaml.load(content, Loader=yaml.SafeLoader) current_desc["_admin"]["storage"] = storage current_desc["_admin"]["onboardingState"] = "ONBOARDED"