From 81b30e916f0cdbcfe0da4868325591c34fb5acb2 Mon Sep 17 00:00:00 2001 From: beierlm Date: Wed, 13 Apr 2022 06:28:58 -0400 Subject: [PATCH] Bug 1989 Do not use trailing / for directory When storing package contents in fsmongo, the tar format does not have a trailing / on directories, but zip format does. As a result, when searching for the charm directory, logic was added to append the / on the end of the directory name. This is no longer needed as the reverse sync is being used now to store package content and it handles directory names properly. Fixes bug 1989 Change-Id: I31540c817113f393e222ae47c3420f374769e3ed Signed-off-by: beierlm --- osm_nbi/descriptor_topics.py | 1 - 1 file changed, 1 deletion(-) diff --git a/osm_nbi/descriptor_topics.py b/osm_nbi/descriptor_topics.py index 072485a..4661964 100644 --- a/osm_nbi/descriptor_topics.py +++ b/osm_nbi/descriptor_topics.py @@ -973,7 +973,6 @@ class VnfdTopic(DescriptorTopic): if file: return self.fs.file_exists("{}/{}".format(f, file), "file") else: - f = f+"/" if self.fs.file_exists(f, "dir"): if self.fs.dir_ls(f): return True -- 2.17.1