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:
parent
4213ca1424
commit
0bb7e06761
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user