From: Frank Brehm Date: Wed, 17 Mar 2021 11:34:09 +0000 (+0100) Subject: Fixing lib/cr_vmware_tpl/cobbler.py X-Git-Tag: 2.2.5^2 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=7e02dce12555a85bd0df82c27c3489c05e7a4f03;p=pixelpark%2Fcreate-vmware-tpl.git Fixing lib/cr_vmware_tpl/cobbler.py --- diff --git a/lib/cr_vmware_tpl/cobbler.py b/lib/cr_vmware_tpl/cobbler.py index ba71d28..35a5fce 100644 --- a/lib/cr_vmware_tpl/cobbler.py +++ b/lib/cr_vmware_tpl/cobbler.py @@ -40,7 +40,7 @@ from .config import CrTplConfiguration from .xlate import XLATOR -__version__ = '0.6.6' +__version__ = '0.6.7' LOG = logging.getLogger(__name__) @@ -433,12 +433,13 @@ class Cobbler(BaseHandler): # ------------------------------------------------------------------------- def ensure_rsyslog_cfg_files(self): + files_dir = self.base_dir / 'files' docroot = self.config.cobbler_ws_docroot / self.config.cobbler_ws_rel_filesdir remote_dir = docroot / self.config.system_status LOG.info(_("Ensuring currentness of rsyslog config files ...")) - for local_cfg_file in self.base_dir.glob('*rsyslog.conf*'): + for local_cfg_file in files_dir.glob('*rsyslog.conf*'): remote_cfg_file = remote_dir / local_cfg_file.name LOG.debug(_("Ensuring {loc!r} => {rem!r}.").format( loc=str(local_cfg_file), rem=str(remote_cfg_file)))