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:
parent
9cb4b70e27
commit
cd6855275e
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue