mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Now that we convert salt inside of do_encryptas needed, keep salt as text type until then.
This commit is contained in:
@@ -248,8 +248,7 @@ class LookupModule(LookupBase):
|
||||
_write_password_file(b_path, content)
|
||||
|
||||
if params['encrypt']:
|
||||
password = do_encrypt(plaintext_password, params['encrypt'],
|
||||
salt=to_bytes(salt, encoding='ascii', errors='strict'))
|
||||
password = do_encrypt(plaintext_password, params['encrypt'], salt=salt)
|
||||
ret.append(password)
|
||||
else:
|
||||
ret.append(plaintext_password)
|
||||
|
||||
Reference in New Issue
Block a user