From b6883ab64e4bc259d034d78b405b6a1fc0f62ae7 Mon Sep 17 00:00:00 2001 From: chris93111 Date: Mon, 29 Jun 2020 22:58:18 +0200 Subject: [PATCH] Update tower_workflow_job_template_node.py correction to lookup inventory --- .../plugins/modules/tower_workflow_job_template_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx_collection/plugins/modules/tower_workflow_job_template_node.py b/awx_collection/plugins/modules/tower_workflow_job_template_node.py index 629badce37..16902e9421 100644 --- a/awx_collection/plugins/modules/tower_workflow_job_template_node.py +++ b/awx_collection/plugins/modules/tower_workflow_job_template_node.py @@ -224,7 +224,7 @@ def main(): inventory = module.params.get('inventory') if inventory: - new_fields['inventory'] = module.resolve_name_to_id('inventory', inventory) + new_fields['inventory'] = module.resolve_name_to_id('inventories', inventory) # Create the data that gets sent for create and update for field_name in (