X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwlaunchpad%2Fplugins%2Frwpkgmgr%2Frift%2Ftasklets%2Frwpkgmgr%2Fproxy%2Ffilesystem.py;h=2acfed1bdb79b98b9f07caa043e4e53cc4fe0316;hb=refs%2Fchanges%2F37%2F1737%2F1;hp=6cfc0fafab8b0fb138817f3b5978fafacb3ec81e;hpb=b52d803610e99ed166f545b96b561fed817dc8cc;p=osm%2FSO.git diff --git a/rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/proxy/filesystem.py b/rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/proxy/filesystem.py index 6cfc0faf..2acfed1b 100644 --- a/rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/proxy/filesystem.py +++ b/rwlaunchpad/plugins/rwpkgmgr/rift/tasklets/rwpkgmgr/proxy/filesystem.py @@ -83,9 +83,10 @@ class FileSystemProxy(AbstractPackageManagerProxy): # the first part will always be the vnfd/nsd name mode = 0o664 - # for files other than README, create the package path from the asset type + # for files other than README, create the package path from the asset type, e.g. icons/icon1.png + # for README files, strip off any leading '/' package_path = package_file_type + "/" + package_path \ - if package_file_type != "readme" else package_path + if package_file_type != "readme" else package_path.strip('/') components = package_path.split("/") if len(components) > 2: schema = components[1] @@ -106,6 +107,7 @@ class FileSystemProxy(AbstractPackageManagerProxy): self.log.exception(e) return False + self.log.debug("File insertion complete at {}".format(dest_file)) return True def package_file_delete(self, package_type, package_id, package_path, package_file_type):