commit | 00c573cb2ac7dfee221f13c6b0c8768d37ff4ab4 | [log] [tgz] |
---|---|---|
author | Andy Bavier <andy@onlab.us> | Fri Feb 08 16:19:11 2019 -0700 |
committer | Andy Bavier <andy@opennetworking.org> | Mon Mar 04 22:16:00 2019 +0000 |
tree | a0a3fc5c705658c34a391e9ba39b0f67ca8fe15e | |
parent | b50f5f05277b45345e61f593c0f7aa7d52d62750 [diff] |
SEBA-466 Fix or note potential concurrency issues Change-Id: Iabfa6c7021cacc565c39e09fcd884fa048ca5004
diff --git a/xos/synchronizer/model_policies/model_policy_voltserviceinstance.py b/xos/synchronizer/model_policies/model_policy_voltserviceinstance.py index 966435a..c437c78 100644 --- a/xos/synchronizer/model_policies/model_policy_voltserviceinstance.py +++ b/xos/synchronizer/model_policies/model_policy_voltserviceinstance.py
@@ -68,4 +68,4 @@ raise Exception("ONUDevice with serial number %s can't be found" % onu_device_serial_number) si.onu_device_id = onu.id - si.save() + si.save_changed_fields()
diff --git a/xos/synchronizer/model_policies/test_model_policy_voltserviceinstance.py b/xos/synchronizer/model_policies/test_model_policy_voltserviceinstance.py index 3ded41d..1cfdf05 100644 --- a/xos/synchronizer/model_policies/test_model_policy_voltserviceinstance.py +++ b/xos/synchronizer/model_policies/test_model_policy_voltserviceinstance.py
@@ -129,7 +129,7 @@ self.policy.associate_onu_device(self.si) self.assertEqual(self.si.onu_device_id, mock_onu.id) - self.si.save.assert_called() + self.si.save_changed_fields.assert_called() def test_handle_delete(self): self.policy.handle_delete(self.si)