1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

tower cred: filter user name lookup by the proper key

This commit is contained in:
Ryan Petrello 2018-02-22 11:23:38 -05:00 committed by Sam Doran
parent 9cb4b70e27
commit cd6855275e

View file

@ -266,7 +266,7 @@ def main():
if module.params.get('user'):
user_res = tower_cli.get_resource('user')
user = user_res.get(name=module.params.get('user'))
user = user_res.get(username=module.params.get('user'))
params['user'] = user['id']
if module.params.get('team'):