mirror of
https://github.com/ansible/awx.git
synced 2026-03-17 00:47:29 -02:30
add new name to multiple modules
This commit is contained in:
committed by
sean-m-sullivan
parent
03ed6e9755
commit
bb8efbcc82
@@ -810,7 +810,7 @@ def main():
|
||||
)
|
||||
|
||||
# Get Workflow information in case one was just created.
|
||||
existing_item = module.get_one('workflow_job_templates', name_or_id=name, **{'data': search_fields})
|
||||
existing_item = module.get_one('workflow_job_templates', name_or_id=new_name if new_name else name, **{'data': search_fields})
|
||||
workflow_job_template_id = existing_item['id']
|
||||
# Destroy current nodes if selected.
|
||||
if destroy_current_schema:
|
||||
|
||||
Reference in New Issue
Block a user