From c2cfaec7d122f228cd6de59a3eb300a99ac06c4e Mon Sep 17 00:00:00 2001 From: John Westcott IV Date: Tue, 8 Sep 2020 11:52:53 -0400 Subject: [PATCH] Fixing name -> username --- awx_collection/plugins/modules/tower_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx_collection/plugins/modules/tower_user.py b/awx_collection/plugins/modules/tower_user.py index 0b0dd6d45d..4b648356e4 100644 --- a/awx_collection/plugins/modules/tower_user.py +++ b/awx_collection/plugins/modules/tower_user.py @@ -143,7 +143,7 @@ def main(): # Create the data that gets sent for create and update new_fields = {} if username: - new_fields['username'] = module.get_item_name(existing_item) if existing_item else name + new_fields['username'] = module.get_item_name(existing_item) if existing_item else username if first_name: new_fields['first_name'] = first_name if last_name: