From 89e92bd337eb4ed4d7260b8380680680bc1d2f8a Mon Sep 17 00:00:00 2001 From: John Westcott IV Date: Wed, 29 Jan 2020 09:54:35 -0500 Subject: [PATCH] Updating call to create_or_update_if_needed --- awx_collection/plugins/modules/tower_team.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__':