fix delete when hpc object has no cmi object id; add silent=true for originserver
diff --git a/planetstack/hpc_observer/steps/sync_originserver.py b/planetstack/hpc_observer/steps/sync_originserver.py
index 6fb6234..92ac0f4 100644
--- a/planetstack/hpc_observer/steps/sync_originserver.py
+++ b/planetstack/hpc_observer/steps/sync_originserver.py
@@ -69,7 +69,9 @@
url = url[7:]
self.client.cob.UpdateContent(ors.origin_server_id, {"url": url})
+ ors.silent = True
ors.save()
- def delete(self, m):
- self.client.onev.Delete("OriginServer", m.origin_server_id)
+ def delete_record(self, m):
+ if m.origin_server_id is not None:
+ self.client.onev.Delete("OriginServer", m.origin_server_id)