From a0deb2d8f1d4d858fd8208f7403d2e55da80fa43 Mon Sep 17 00:00:00 2001 From: sousaedu Date: Tue, 21 Apr 2020 12:08:14 +0100 Subject: [PATCH] Fix bug 1053 This fixes bug 1053 by making the sync call before any of the other functions requires the package. Change-Id: I95f61fd88cfa84fbb29e05b40f95c82f84e7cf84 Signed-off-by: sousaedu --- osm_lcm/ns.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osm_lcm/ns.py b/osm_lcm/ns.py index dc53b98..55bebbe 100644 --- a/osm_lcm/ns.py +++ b/osm_lcm/ns.py @@ -1168,7 +1168,6 @@ class NsLcm(LcmBase): element_under_configuration = kdu_name # Get artifact path - self.fs.sync() # Sync from FSMongo artifact_path = "{}/{}/charms/{}".format( base_folder["folder"], base_folder["pkg-dir"], @@ -1548,6 +1547,9 @@ class NsLcm(LcmBase): logging_text = "Task ns={} instantiate={} ".format(nsr_id, nslcmop_id) self.logger.debug(logging_text + "Enter") + # Sync from FSMongo + self.fs.sync() + # get all needed from database # database nsrs record -- 2.17.1