From: Frank Brehm Date: Wed, 2 May 2018 11:44:26 +0000 (+0200) Subject: Emitting warning in case of aborting template creation X-Git-Tag: 0.1.1~5^2~2 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=b2230534f208583fe1f7c413589d17bc44872be9;p=pixelpark%2Fcreate-vmware-tpl.git Emitting warning in case of aborting template creation --- 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()