Steps in which deletion is not supported have to return an empty list
when queried for deleted objects.
diff --git a/planetstack/openstack_observer/steps/sync_site_privileges.py b/planetstack/openstack_observer/steps/sync_site_privileges.py
index 8724841..d07b279 100644
--- a/planetstack/openstack_observer/steps/sync_site_privileges.py
+++ b/planetstack/openstack_observer/steps/sync_site_privileges.py
@@ -9,7 +9,11 @@
requested_interval=0
provides=[SitePrivilege]
- def fetch_pending(self):
+ def fetch_pending(self, deleted):
+ # Deleting site privileges is not supported yet
+ if (deleted):
+ return []
+
return SitePrivilege.objects.filter(Q(enacted__lt=F('updated')) | Q(enacted=None))
def sync_record(self, site_priv):