Fix zipfile filename in OKA creation
Change-Id: I4702eb0289db82ab871b4c1763091162152cc86f
Signed-off-by: yshah <shahithya.y@tataelxsi.co.in>
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 @@
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"))