CORD-2238 unit tests for veg syncsteps
Change-Id: I05e3360f61fdd6248a8538e88a2f68693e858230
(cherry picked from commit 60671dcbf9f44605bf7378373a9bbf844a60a5c5)
diff --git a/xos/synchronizer/steps/sync_vegtenant.py b/xos/synchronizer/steps/sync_vegtenant.py
index 44db1ff..98400f3 100644
--- a/xos/synchronizer/steps/sync_vegtenant.py
+++ b/xos/synchronizer/steps/sync_vegtenant.py
@@ -157,12 +157,12 @@
def sync_record(self, o):
if (not o.policed) or (o.policed<o.updated):
- defer_sync("waiting on model policy")
+ self.defer_sync(o, "waiting on model policy")
super(SyncVEGTenant, self).sync_record(o)
def delete_record(self, o):
if (not o.policed) or (o.policed<o.updated):
- defer_sync("waiting on model policy")
+ self.defer_sync(o, "waiting on model policy")
# do not call super, as we don't want to re-run the playbook
def handle_service_monitoringagentinfo_watch_notification(self, monitoring_agent_info):