from .xlate import XLATOR
-__version__ = '0.4.6'
+__version__ = '0.4.7'
LOG = logging.getLogger(__name__)
# -------------------------------------------------------------------------
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)
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)
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)
# -------------------------------------------------------------------------