tower cred: filter user name lookup by the proper key

(cherry picked from commit cd6855275e)
pull/37055/head
Ryan Petrello 7 years ago committed by Sam Doran
parent 1a412d49bf
commit 86cc8ae591

@ -266,7 +266,7 @@ def main():
if module.params.get('user'): if module.params.get('user'):
user_res = tower_cli.get_resource('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'] params['user'] = user['id']
if module.params.get('team'): if module.params.get('team'):

Loading…
Cancel
Save