From d269a6d23302b6a471a654b3fb54c572338facb6 Mon Sep 17 00:00:00 2001 From: sean-m-sullivan Date: Tue, 1 Sep 2020 15:59:04 -0500 Subject: [PATCH] update --- awx_collection/plugins/modules/tower_project_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx_collection/plugins/modules/tower_project_update.py b/awx_collection/plugins/modules/tower_project_update.py index b4a81b6aac..c08cfbb76e 100644 --- a/awx_collection/plugins/modules/tower_project_update.py +++ b/awx_collection/plugins/modules/tower_project_update.py @@ -111,7 +111,7 @@ def main(): else: lookup_data = {'name': name} if organization: - lookup_data['organization'] = module.resolve_name_to_id('organizations', organization) + lookup_data['organization'] = module.get_one_by_name_or_id('organizations', organization) project = module.get_one('projects', data=lookup_data) if project is None: module.fail_json(msg="Unable to find project")