mirror of
https://github.com/ansible/awx.git
synced 2026-07-30 17:39:57 -02:30
update delete
This commit is contained in:
@@ -238,7 +238,7 @@ def main():
|
|||||||
if state == 'absent':
|
if state == 'absent':
|
||||||
# If the state was absent we can let the module delete it if needed, the module will handle exiting from this
|
# If the state was absent we can let the module delete it if needed, the module will handle exiting from this
|
||||||
module.delete_if_needed(existing_item, on_continue=True,)
|
module.delete_if_needed(existing_item, on_continue=True,)
|
||||||
|
else:
|
||||||
unified_job_template = module.params.get('unified_job_template')
|
unified_job_template = module.params.get('unified_job_template')
|
||||||
if unified_job_template:
|
if unified_job_template:
|
||||||
new_fields['unified_job_template'] = module.resolve_name_to_id('unified_job_templates', unified_job_template)
|
new_fields['unified_job_template'] = module.resolve_name_to_id('unified_job_templates', unified_job_template)
|
||||||
|
|||||||
Reference in New Issue
Block a user