mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Warn when password decrypton requested but not possible
This commit is contained in:
parent
806307aecf
commit
e52b390d63
1 changed files with 2 additions and 0 deletions
|
@ -4887,6 +4887,8 @@ def get_password_data(
|
|||
ret[next(six.iterkeys(item))] = next(six.itervalues(item))
|
||||
|
||||
if not HAS_M2 and not HAS_PYCRYPTO:
|
||||
if 'key' in kwargs or 'key_file' in kwargs:
|
||||
log.warn("No crypto library is installed, can not decrypt password")
|
||||
return ret
|
||||
|
||||
if 'key' not in kwargs:
|
||||
|
|
Loading…
Add table
Reference in a new issue