Fix zipfile filename in OKA creation 05/14805/1
authoryshah <shahithya.y@tataelxsi.co.in>
Tue, 24 Sep 2024 18:16:07 +0000 (18:16 +0000)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 2 Dec 2024 17:35:38 +0000 (18:35 +0100)
Change-Id: I4702eb0289db82ab871b4c1763091162152cc86f
Signed-off-by: yshah <shahithya.y@tataelxsi.co.in>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_nbi/k8s_topics.py

index 8d9d244..e00326d 100644 (file)
@@ -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"))