From b2230534f208583fe1f7c413589d17bc44872be9 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 2 May 2018 13:44:26 +0200 Subject: [PATCH] Emitting warning in case of aborting template creation --- lib/cr_vmware_tpl/handler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/cr_vmware_tpl/handler.py b/lib/cr_vmware_tpl/handler.py index bd774bd..996ae29 100644 --- a/lib/cr_vmware_tpl/handler.py +++ b/lib/cr_vmware_tpl/handler.py @@ -220,7 +220,10 @@ class CrTplHandler(PpBaseObject): "Could not find VM after creating.") self.poweron_vm() self.wait_for_finish_install() - if not self.abort: + if self.abort: + LOG.warn("Aborting after creation of template VM.") + LOG.warn("You are responsible yourself to clewaning up the VM!!!") + else: self.post_install_tasks_ssh() self.poweroff_vm() self.change_mac_address() -- 2.39.5