summaryrefslogtreecommitdiffstats
path: root/awx_collection
diff options
context:
space:
mode:
authorDivided by Zer0 <mail@dbzer0.com>2023-01-19 22:25:19 +0100
committerGitHub <noreply@github.com>2023-01-19 22:25:19 +0100
commite9ad01e806db7bc5c233151f4808577875490665 (patch)
tree019d799be28f2e8f465937e598ad37f0b1755f63 /awx_collection
parentWorkaround for events with NUL char, touch up error loop (#13398) (diff)
downloadawx-e9ad01e806db7bc5c233151f4808577875490665.tar.xz
awx-e9ad01e806db7bc5c233151f4808577875490665.zip
Handles workflow node schema inventory (#12721)
Verified by QE. Merging it.
Diffstat (limited to 'awx_collection')
-rw-r--r--awx_collection/plugins/modules/workflow_job_template.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/awx_collection/plugins/modules/workflow_job_template.py b/awx_collection/plugins/modules/workflow_job_template.py
index ba4d5cf102..0871ec3b1c 100644
--- a/awx_collection/plugins/modules/workflow_job_template.py
+++ b/awx_collection/plugins/modules/workflow_job_template.py
@@ -614,6 +614,10 @@ def create_workflow_nodes(module, response, workflow_nodes, workflow_id):
if workflow_node['unified_job_template']['type'] != 'workflow_approval':
module.fail_json(msg="Unable to Find unified_job_template: {0}".format(search_fields))
+ inventory = workflow_node.get('inventory')
+ if inventory:
+ workflow_node_fields['inventory'] = module.resolve_name_to_id('inventories', inventory)
+
# Lookup Values for other fields
for field_name in (