From: yshah Date: Tue, 24 Sep 2024 18:16:07 +0000 (+0000) Subject: Fix zipfile filename in OKA creation X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F98%2F14598%2F1;p=osm%2FNBI.git Fix zipfile filename in OKA creation Change-Id: I4702eb0289db82ab871b4c1763091162152cc86f Signed-off-by: yshah --- diff --git a/osm_nbi/k8s_topics.py b/osm_nbi/k8s_topics.py index 8d9d244..e00326d 100644 --- a/osm_nbi/k8s_topics.py +++ b/osm_nbi/k8s_topics.py @@ -1099,12 +1099,11 @@ class OkaTopic(DescriptorTopic): storage = self.fs.get_params() storage["folder"] = proposed_revision_path + storage["zipfile"] = filename file_path = (proposed_revision_path, filename) file_pkg = self.fs.file_open(file_path, "a+b") - filename = indata.filename - if isinstance(indata, dict): indata_text = yaml.safe_dump(indata, indent=4, default_flow_style=False) file_pkg.write(indata_text.encode(encoding="utf-8"))