SEBA-405 Update progran service to use synchronizer library
Change-Id: Ia538fec19a1efeee12ec81e5733bdc30990b478a
diff --git a/xos/synchronizer/steps/helpers.py b/xos/synchronizer/steps/helpers.py
index 333566a..077d559 100644
--- a/xos/synchronizer/steps/helpers.py
+++ b/xos/synchronizer/steps/helpers.py
@@ -14,7 +14,6 @@
from xosconfig import Config
from multistructlog import create_logger
-from synchronizers.new_base.modelaccessor import ProgranService
import time
import datetime
@@ -28,9 +27,9 @@
return ProgranHelpers.get_onos_info_from_service(progran_service)
@staticmethod
- def get_progran_onos_info():
+ def get_progran_onos_info(model_accessor):
try:
- progran_service = ProgranService.objects.all()[0]
+ progran_service = model_accessor.ProgranService.objects.all()[0]
except IndexError:
raise Exception("Cannot find Progran Service, does it exists?")
return ProgranHelpers.get_onos_info_from_service(progran_service)