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))
+ if self.verbose > 1:
+ pw_show = self.root_password
+ if self.verbose < 4:
+ pw_show = '********'
+ LOG.debug("Hashing password {pw!r} with salt {sa!r} (method {me!r})..".format(
+ pw=pw_show, 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))