From 1f79fdd87eca4a008288fa8d001efeb0343f9281 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 9 Jun 2020 17:55:04 +0200 Subject: [PATCH] Adding debug output --- lib/cr_vmware_tpl/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.39.5