From 2c932bd94ae15493e5e13650ebf934a1ac356dc5 Mon Sep 17 00:00:00 2001 From: yshah Date: Tue, 24 Sep 2024 18:16:07 +0000 Subject: [PATCH] Fix zipfile filename in OKA creation Change-Id: I4702eb0289db82ab871b4c1763091162152cc86f Signed-off-by: yshah --- osm_nbi/k8s_topics.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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")) -- 2.25.1