Skip to content

Commit

Permalink
Fix CI failures
Browse files Browse the repository at this point in the history
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
  • Loading branch information
Akasurde committed Dec 20, 2018
1 parent 4e26647 commit 790b6c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ansible/plugins/filter/core.py
Expand Up @@ -255,6 +255,7 @@ def get_encrypted_password(password, hashtype='sha512', salt=None, salt_size=Non
}

hashtype = passlib_mapping.get(hashtype, hashtype)
password = to_text(password, errors='surrogate_or_strict')
try:
return passlib_or_crypt(password, hashtype, salt=salt, salt_size=salt_size, rounds=rounds)
except AnsibleError as e:
Expand Down

0 comments on commit 790b6c6

Please sign in to comment.