mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
fix bug where not all char_prompts were coppied to workflow job
This commit is contained in:
@@ -278,14 +278,14 @@ class WorkflowJobInheritNodesMixin(object):
|
||||
unified_job_template=old_node.unified_job_template,
|
||||
)
|
||||
ujt_obj = old_node.unified_job_template
|
||||
if ujt_obj:
|
||||
if ujt_obj and hasattr(ujt_obj, '_ask_for_vars_dict'):
|
||||
ask_for_vars_dict = ujt_obj._ask_for_vars_dict()
|
||||
if ask_for_vars_dict['inventory'] and old_node.inventory:
|
||||
kwargs['inventory'] = old_node.inventory
|
||||
if ask_for_vars_dict['credential'] and old_node.credential:
|
||||
kwargs['credential'] = old_node.credential
|
||||
for fd in CHAR_PROMPTS_LIST:
|
||||
new_char_prompts = {}
|
||||
for fd in CHAR_PROMPTS_LIST:
|
||||
if ask_for_vars_dict[fd] and old_node.char_prompts.get(fd, None):
|
||||
new_char_prompts[fd] = old_node.char_prompts[fd]
|
||||
if new_char_prompts:
|
||||
|
||||
Reference in New Issue
Block a user