mirror of
https://github.com/ansible/awx.git
synced 2026-03-16 00:17:29 -02:30
Merge pull request #6609 from beeankha/wfjt_module_inventory_fix
Resolve Name to ID Properly in WFJT Module Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -192,7 +192,7 @@ def main():
|
|||||||
|
|
||||||
inventory = module.params.get('inventory')
|
inventory = module.params.get('inventory')
|
||||||
if inventory:
|
if inventory:
|
||||||
new_fields['inventory'] = module.resolve_name_to_id('inventory', inventory)
|
new_fields['inventory'] = module.resolve_name_to_id('inventories', inventory)
|
||||||
|
|
||||||
webhook_credential = module.params.get('webhook_credential')
|
webhook_credential = module.params.get('webhook_credential')
|
||||||
if webhook_credential:
|
if webhook_credential:
|
||||||
|
|||||||
@@ -82,6 +82,7 @@
|
|||||||
- name: Create a workflow job template
|
- name: Create a workflow job template
|
||||||
tower_workflow_job_template:
|
tower_workflow_job_template:
|
||||||
name: "{{ wfjt_name }}"
|
name: "{{ wfjt_name }}"
|
||||||
|
inventory: Demo Inventory
|
||||||
extra_vars: {'foo': 'bar', 'another-foo': {'barz': 'bar2'}}
|
extra_vars: {'foo': 'bar', 'another-foo': {'barz': 'bar2'}}
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user