mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
update to allow use of id for unified job template
This commit is contained in:
@@ -310,9 +310,7 @@ def main():
|
||||
|
||||
unified_job_template = module.params.get('unified_job_template')
|
||||
if unified_job_template:
|
||||
search_fields['name'] = unified_job_template
|
||||
new_fields['unified_job_template'] = module.get_one('unified_job_templates', **{'data': search_fields})['id']
|
||||
|
||||
new_fields['unified_job_template'] = module.get_one('unified_job_templates', name_or_id=unified_job_template, **{'data': search_fields})['id']
|
||||
inventory = module.params.get('inventory')
|
||||
if inventory:
|
||||
new_fields['inventory'] = module.resolve_name_to_id('inventories', inventory)
|
||||
|
||||
Reference in New Issue
Block a user