From: Frank Brehm Date: Wed, 29 Jun 2022 14:30:11 +0000 (+0200) Subject: Changing debug output X-Git-Tag: 2.6.2~1^2~8^2~32 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=ca729bfe872179485b9dbbf88f80056d607496ec;p=pixelpark%2Fcreate-vmware-tpl.git Changing debug output --- 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)