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_users.py b/xos/synchronizer/steps/sync_controller_users.py
index 1892b0b..72f67da 100644
--- a/xos/synchronizer/steps/sync_controller_users.py
+++ b/xos/synchronizer/steps/sync_controller_users.py
@@ -63,7 +63,8 @@
def map_sync_outputs(self, controller_user, res):
controller_user.kuser_id = res[0]['user']['id']
- controller_user.backend_status = '1 - OK'
+ controller_user.backend_status = 'OK'
+ controller_user.backend_code = 1
controller_user.save()
def delete_record(self, controller_user):