From ff800e1d31936e5d367c7eb0fe8bead5370358bd Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 10 Jun 2020 16:47:26 +0200 Subject: [PATCH] copr-be: explicitly exit 1 in exit handler in vm-aws-new Seems like in some situations we return exit status 0. --- roles/copr/backend/templates/resalloc/vm-aws-new | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/copr/backend/templates/resalloc/vm-aws-new b/roles/copr/backend/templates/resalloc/vm-aws-new index 27dd311dd7..8bc5d3db64 100755 --- a/roles/copr/backend/templates/resalloc/vm-aws-new +++ b/roles/copr/backend/templates/resalloc/vm-aws-new @@ -65,6 +65,7 @@ cleanup_actions() # it is safe to ask for removal of non-existeng VM (in case the playbook # below was shut-down before the VM was even created) $delete_script + exit 1 fi } trap cleanup_actions EXIT