From b95ef4be8a1a7e521f79134fe42ab1eddb2ab95e Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 28 May 2020 17:21:56 +0200 Subject: [PATCH] Bugfixing --- lib/cr_vmware_tpl/cobbler.py | 5 +++++ 1 file changed, 5 insertions(+) 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): -- 2.39.5