diff --git a/osm_nbi/k8s_topics.py b/osm_nbi/k8s_topics.py index 8d9d24423cc3a15da0d84a9d5dab70526d83dd95..e00326d2b3d035a29f639dbcf80734f8c9ed2e61 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"))