diff --git a/awx_collection/plugins/modules/tower_team.py b/awx_collection/plugins/modules/tower_team.py index ccabfa4816..a8f504d337 100644 --- a/awx_collection/plugins/modules/tower_team.py +++ b/awx_collection/plugins/modules/tower_team.py @@ -113,7 +113,7 @@ def main(): module.delete_if_needed(team) elif state == 'present': # If the state was present we can let the module build or update the existing team, this will return on its own - module.create_or_update_if_needed(team, team_fields, item_type='team'}) + module.create_or_update_if_needed(team, team_fields, endpoint='teams', item_type='team') if __name__ == '__main__':