]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Fixing lib/cr_vmware_tpl/cobbler.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 17 Mar 2021 11:34:09 +0000 (12:34 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 17 Mar 2021 11:34:09 +0000 (12:34 +0100)
lib/cr_vmware_tpl/cobbler.py

index ba71d28689a01302a99fdd4a0b872bc34e42ebde..35a5fce78646a0968ee301bd110aae807249fdeb 100644 (file)
@@ -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)))