]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Adding debug output
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 9 Jun 2020 15:55:04 +0000 (17:55 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 9 Jun 2020 15:55:04 +0000 (17:55 +0200)
lib/cr_vmware_tpl/config.py

index a7431ec55438ebb85ae407d38723c61b1ca1427f..d47341dec77cd169e9ea392663be212f1c05add1 100644 (file)
@@ -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))