diff --git a/lib/ansible/plugins/lookup/password.py b/lib/ansible/plugins/lookup/password.py index 12943b901e..cf09a7e302 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