Syncronize with fs before deploy package with ee
[osm/LCM.git] / osm_lcm / lcm_helm_conn.py
index 555613e..e204185 100644 (file)
@@ -20,6 +20,7 @@ import yaml
 import asyncio
 import socket
 import uuid
+import os
 
 from grpclib.client import Channel
 
@@ -157,7 +158,9 @@ class LCMHelmConn(N2VCConnector):
                 message="artifact_path is mandatory", bad_args=["artifact_path"]
             )
 
-        # Validate artifact-path exists
+        # Validate artifact-path exists and sync path
+        from_path = os.path.split(artifact_path)[0]
+        self.fs.sync(from_path)
 
         # remove / in charm path
         while artifact_path.find("//") >= 0: