]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Bugfixing
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 28 May 2020 15:21:56 +0000 (17:21 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 28 May 2020 15:21:56 +0000 (17:21 +0200)
lib/cr_vmware_tpl/cobbler.py

index 2c0f4eee3bbcceb1c8d8f424e43adc61f26b42f5..afc9232d5ae99ff21581dbc19f59e924938beb7d 100644 (file)
@@ -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):