CORD-1845: Update backend messages to match new scheme (backend_status and
backend_code instead of backend_status alone)
Change-Id: Idb8b6e1f6b4f993e262491238e98018b4f603399
diff --git a/xos/synchronizer/steps/sync_controller_sites.py b/xos/synchronizer/steps/sync_controller_sites.py
index 257ae76..f12f477 100644
--- a/xos/synchronizer/steps/sync_controller_sites.py
+++ b/xos/synchronizer/steps/sync_controller_sites.py
@@ -52,7 +52,8 @@
def map_sync_outputs(self, controller_site, res):
controller_site.tenant_id = res[0]['project']['id']
- controller_site.backend_status = '1 - OK'
+ controller_site.backend_status = 'OK'
+ controller_site.backend_code = 1
controller_site.save()
def delete_record(self, controller_site):