From 5b79aa54f978d4ef650ae0db1c59e8e376edf453 Mon Sep 17 00:00:00 2001 From: Greg Jones Date: Fri, 29 May 2020 10:53:51 +0200 Subject: [PATCH] fixup! Remove code-path for responding to Delete events --- fiaas_deploy_daemon/deployer/deploy.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fiaas_deploy_daemon/deployer/deploy.py b/fiaas_deploy_daemon/deployer/deploy.py index ed8d66f3..358fa172 100644 --- a/fiaas_deploy_daemon/deployer/deploy.py +++ b/fiaas_deploy_daemon/deployer/deploy.py @@ -47,8 +47,6 @@ def __call__(self): LOG.info("Received %r for %s", event.app_spec, event.action) if event.action == "UPDATE": self._update(event.app_spec, event.lifecycle_subject) - elif event.action == "DELETE": - self._delete(event.app_spec) else: raise ValueError("Unknown DeployerEvent action {}".format(event.action)) @@ -69,10 +67,6 @@ def _update(self, app_spec, lifecycle_subject): self._lifecycle.failed(lifecycle_subject) self._bookkeeper.failed(app_spec) - def _delete(self, app_spec): - self._adapter.delete(app_spec) - LOG.info("Completed removal of %r", app_spec) - def _make_gen(func): while True: