implement fetch_pending()
diff --git a/planetstack/observer/steps/sync_sites.py b/planetstack/observer/steps/sync_sites.py
index 1f7a0f8..ece34af 100644
--- a/planetstack/observer/steps/sync_sites.py
+++ b/planetstack/observer/steps/sync_sites.py
@@ -7,6 +7,10 @@
class SyncSites(OpenStackSyncStep):
provides=[Site]
requested_interval=0
+
+ def fetch_pending(self):
+ return Site.objects.filter(Q(enacted__lt=F('updated')) | Q(enacted=None))
+
def sync_record(self, site):
save_site = False
if not site.tenant_id: