1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03: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 AlanCoding
parent 4213ca1424
commit 0bb7e06761
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

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'):