Warn when password decrypton requested but not possible

This commit is contained in:
Daniel A. Wozniak 2019-04-27 04:47:35 +00:00
parent 806307aecf
commit e52b390d63
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

View file

@ -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: