mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Add workflow node identifier
Generate new modules WFJT and WFJT node Touch up generated syntax, test new modules Add utility method in awxkit Fix some issues with non-name identifier in AWX collection module_utils Update workflow docs for workflow node identifier Test and fix WFJT modules survey_spec Plug in survey spec for the new module Handle survey spec idempotency and test add associations for node connections Handle node credential prompts as well Add indexes for new identifier field Test with unicode dragon in name
This commit is contained in:
@@ -115,6 +115,10 @@ class WorkflowJobTemplateNode(HasCreate, base.Base):
|
||||
self.related.create_approval_template.post(kwargs)
|
||||
return self.get()
|
||||
|
||||
def get_job_node(self, workflow_job):
|
||||
candidates = workflow_job.get_related('workflow_nodes', identifier=self.identifier)
|
||||
return candidates.results.pop()
|
||||
|
||||
|
||||
page.register_page([resources.workflow_job_template_node,
|
||||
(resources.workflow_job_template_nodes,
|
||||
|
||||
Reference in New Issue
Block a user