[SEBA-494] Validating core version matched version requested by synchronizer
Change-Id: Id7018394c70559eae0e424e1e231d8e70b0496de
diff --git a/lib/xos-synchronizer/xossynchronizer/loadmodels.py b/lib/xos-synchronizer/xossynchronizer/loadmodels.py
index 7acce41..1c1f8bd 100644
--- a/lib/xos-synchronizer/xossynchronizer/loadmodels.py
+++ b/lib/xos-synchronizer/xossynchronizer/loadmodels.py
@@ -70,6 +70,13 @@
item.filename = fn
item.contents = open(os.path.join(migrations_dir, fn)).read()
+ # loading core requested version from synchronizer config
+ core_version = Config.get("core_version")
+ if core_version is None:
+ log.warn("Core version is not set in the config file")
+
+ request.core_version = core_version
+
result = self.api.dynamicload.LoadModels(request)
return result