diff --git a/lib/ansible/plugins/lookup/password.py b/lib/ansible/plugins/lookup/password.py index 12943b901e0..cf09a7e3022 100644 --- a/lib/ansible/plugins/lookup/password.py +++ b/lib/ansible/plugins/lookup/password.py @@ -145,7 +145,7 @@ class LookupModule(LookupBase): salt_field = content[sep + 1:] if salt_field.startswith('salt='): password = content[:sep] - salt = salt_field[len('salt=':] + salt = salt_field[len('salt='):] else: password = content salt = None