HPC service does not support deletion
diff --git a/planetstack/hpc_observer/steps/sync_hpcservices.py b/planetstack/hpc_observer/steps/sync_hpcservices.py
index a4c9e77..d8d7ba5 100644
--- a/planetstack/hpc_observer/steps/sync_hpcservices.py
+++ b/planetstack/hpc_observer/steps/sync_hpcservices.py
@@ -25,8 +25,12 @@
SyncStep.__init__(self, **args)
HpcLibrary.__init__(self)
- def fetch_pending(self):
- return HpcService.objects.filter(Q(enacted__lt=F('updated')) | Q(enacted=None))
+ def fetch_pending(self, deleted):
+ # Looks like deletion is not supported for this object - Sapan
+ if (deleted):
+ return []
+ else:
+ return HpcService.objects.filter(Q(enacted__lt=F('updated')) | Q(enacted=None))
def sync_record(self, hpc_service):
logger.info("sync'ing hpc_service %s" % str(hpc_service))