update delete

This commit is contained in:
sean-m-sullivan
2020-10-10 13:25:09 -05:00
parent c3045f6a29
commit c57ec1ea79

View File

@@ -238,7 +238,7 @@ def main():
if state == 'absent':
# 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,)
else:
unified_job_template = module.params.get('unified_job_template')
if unified_job_template:
new_fields['unified_job_template'] = module.resolve_name_to_id('unified_job_templates', unified_job_template)