From: Frank Brehm Date: Thu, 28 May 2020 15:21:56 +0000 (+0200) Subject: Bugfixing X-Git-Tag: 2.1.2^2~9^2~31^2~87 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=b95ef4be8a1a7e521f79134fe42ab1eddb2ab95e;p=pixelpark%2Fcreate-vmware-tpl.git Bugfixing --- diff --git a/lib/cr_vmware_tpl/cobbler.py b/lib/cr_vmware_tpl/cobbler.py index 2c0f4ee..afc9232 100644 --- a/lib/cr_vmware_tpl/cobbler.py +++ b/lib/cr_vmware_tpl/cobbler.py @@ -248,6 +248,11 @@ class Cobbler(BaseHandler): """).format(ks=str(remote_ks), dig=digest) proc = self.exec_ssh(cmd) + if proc.returncode == 0: + return + + msg = _("Kickstart script {!r} has to be copied.").format(str(local_ks)) + LOG.warn(msg) # ------------------------------------------------------------------------- def ensure_profile(self):