Fix Bug 994: Add fs.sync before deploying charm 05/8505/1 v7.0.1rc2
authorDavid Garcia <david.garcia@canonical.com>
Mon, 20 Jan 2020 12:19:29 +0000 (13:19 +0100)
committerDavid Garcia <david.garcia@canonical.com>
Tue, 21 Jan 2020 09:42:27 +0000 (10:42 +0100)
Change-Id: I673e714e375bef5b5a697e53b9f64c9dcd793d55
Signed-off-by: David Garcia <david.garcia@canonical.com>
osm_lcm/ns.py

index 07e3125..7a64f5d 100644 (file)
@@ -1083,6 +1083,7 @@ class NsLcm(LcmBase):
                     element_under_configuration = "{}-{}".format(vdu_id, vdu_index or 0)
 
             # Get artifact path
+            self.fs.sync()  # Sync from FSMongo
             artifact_path = "{}/{}/charms/{}".format(
                 base_folder["folder"],
                 base_folder["pkg-dir"],