mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
netcmd: More explicit warning when python-gpg is missing
Signed-off-by: Andréas Leroux <aleroux@tranquil.it> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Thu Oct 31 00:23:09 UTC 2024 on atb-devel-224
This commit is contained in:
parent
7a5ad9f64a
commit
4f3005f851
@ -500,10 +500,14 @@ class GetPasswordCommand(Command):
|
||||
calculated["Primary:CLEARTEXT"] = cv
|
||||
|
||||
except Exception as e:
|
||||
if gpg_decrypt is None:
|
||||
message = decrypt_samba_gpg_help
|
||||
else:
|
||||
message = str(e)
|
||||
self.outf.write(
|
||||
"WARNING: '%s': SambaGPG can't be decrypted "
|
||||
"into CLEARTEXT: %s\n" % (
|
||||
username or account_name, e))
|
||||
username or account_name, message))
|
||||
|
||||
def get_utf8(a, b, username):
|
||||
creds_for_charcnv = credentials.Credentials()
|
||||
|
Loading…
x
Reference in New Issue
Block a user