CORD-1757 Fix defer_sync is not defined
Change-Id: I76c7ddecb36f4cd7916a7f26b606c83ca678ec2d
diff --git a/xos/synchronizer/steps/sync_vcpetenant.py b/xos/synchronizer/steps/sync_vcpetenant.py
index 99c5c82..a27c8ce 100644
--- a/xos/synchronizer/steps/sync_vcpetenant.py
+++ b/xos/synchronizer/steps/sync_vcpetenant.py
@@ -144,12 +144,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(SyncVSGTenant, 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):