]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Debug output
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 11 Jun 2020 10:13:22 +0000 (12:13 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 11 Jun 2020 10:13:22 +0000 (12:13 +0200)
lib/cr_vmware_tpl/cobbler.py

index 7d0d1d653be13d3f9615eeb5ee4e85d9d5576f91..cd534111d4f5b7e998a3b1853d236120d6528cbf 100644 (file)
@@ -37,7 +37,7 @@ from .config import CrTplConfiguration
 
 from .xlate import XLATOR
 
-__version__ = '0.4.6'
+__version__ = '0.4.7'
 
 LOG = logging.getLogger(__name__)
 
@@ -431,8 +431,10 @@ class Cobbler(BaseHandler):
     # -------------------------------------------------------------------------
     def ensure_profile_ks(self):
 
-        remote_ks = self.config.cobbler_profile_ks
         local_ks = self.base_dir / 'kickstart' / (self.config.cobbler_profile + '.ks')
+        remote_ks = self.config.cobbler_profile_ks
+        LOG.info(_("Ensuring currentness of profile kickstart script {!r}.").format(
+            str(remote_ks)))
 
         self.ensure_remote_file(local_ks, remote_ks)
 
@@ -605,6 +607,8 @@ class Cobbler(BaseHandler):
         local_ks_base = 'template-' + self.config.os_id + '.ks'
         local_ks = self.base_dir / 'kickstart' / local_ks_base
         remote_ks = self.config.system_ks
+        LOG.info(_("Ensuring currentness of system kickstart script {!r}.").format(
+            str(remote_ks)))
 
         self.ensure_remote_file(local_ks, remote_ks)
 
@@ -614,8 +618,13 @@ class Cobbler(BaseHandler):
         local_snippets_dir = self.base_dir / 'snippets'
         self.ensure_remote_directory(self.config.snippets_dir)
 
+        LOG.info(_("Ensuring currentness of snippets below {!r}.").format(
+            str(self.config.snippets_dir)))
+
         for local_snippet in local_snippets_dir.glob('*'):
             remote_snippet = self.config.snippets_dir / local_snippet.name
+            LOG.debug(_("Ensuring {loc!r} => {rem!r}.").format(
+                loc=str(local_snippet), rem=str(remote_snippet)))
             self.ensure_remote_file(local_snippet, remote_snippet, check_parent=False)
 
     # -------------------------------------------------------------------------