From ca729bfe872179485b9dbbf88f80056d607496ec Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 29 Jun 2022 16:30:11 +0200 Subject: [PATCH] Changing debug output --- lib/cr_vmware_tpl/cobbler.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/cr_vmware_tpl/cobbler.py b/lib/cr_vmware_tpl/cobbler.py index 09d6834..417c3c6 100644 --- a/lib/cr_vmware_tpl/cobbler.py +++ b/lib/cr_vmware_tpl/cobbler.py @@ -48,7 +48,7 @@ from .config import CrTplConfiguration from .xlate import XLATOR -__version__ = '0.8.8' +__version__ = '0.8.9' LOG = logging.getLogger(__name__) @@ -595,7 +595,7 @@ class Cobbler(BaseHandler): profile_vars = self.get_profile_vars(profile) - if self.verbose > 1: + if self.verbose > 2: LOG.debug(_("Got profile variables:") + '\n' + pp(profile_vars)) self._change_profile(profile_vars) @@ -1144,7 +1144,8 @@ class Cobbler(BaseHandler): docroot = self.cfg.cobbler_ws_docroot / self.cfg.cobbler_ws_rel_filesdir webroot = docroot / self.cfg.system_status desc = _("Webroot directory") - LOG.info(_("Ensuring existence of {what} {dir!r}...").format(what=desc, dir=webroot)) + LOG.info(_("Ensuring existence of {what} {dir!r}...").format( + what=desc, dir=str(webroot))) self.ensure_remote_directory(webroot, desc) -- 2.39.5