From: Frank Brehm Date: Tue, 9 Jun 2020 15:55:04 +0000 (+0200) Subject: Adding debug output X-Git-Tag: 2.1.2^2~9^2~31^2~66 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=1f79fdd87eca4a008288fa8d001efeb0343f9281;p=pixelpark%2Fcreate-vmware-tpl.git Adding debug output --- diff --git a/lib/cr_vmware_tpl/config.py b/lib/cr_vmware_tpl/config.py index a7431ec..d47341d 100644 --- a/lib/cr_vmware_tpl/config.py +++ b/lib/cr_vmware_tpl/config.py @@ -22,7 +22,7 @@ from fb_tools.config import ConfigError, BaseConfiguration from .xlate import XLATOR -__version__ = '1.5.3' +__version__ = '1.5.4' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -576,6 +576,8 @@ class CrTplConfiguration(BaseConfiguration): raise ValueError(msg) salt = crypt.mksalt(self.method_list[m]) + LOG.debug("Hashing password {pw!r} with salt {sa!r} (method {me!r})..".format( + pw=self.root_password, sa=salt, me=m)) pwd_hash = crypt.crypt(self.root_password, salt) if self.verbose > 2: LOG.debug(_("Hashed root password: {!r}").format(pwd_hash))