mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Error message text improvement.
This commit is contained in:
parent
a85075acea
commit
ff1fdb4f5b
@ -2685,11 +2685,11 @@ class WorkflowJobTemplateNodeChildrenBaseList(EnforceParentRelationshipMixin, Su
|
||||
sub_node = graph[sub.pk]
|
||||
parent_node = graph[parent.pk]
|
||||
if sub_node['metadata']['parent'] is not None:
|
||||
return {"Error": "Multiple ancestor detected!"}
|
||||
return {"Error": "Multiple parent relationship not allowed."}
|
||||
iter_node = parent_node
|
||||
while iter_node is not None:
|
||||
if iter_node == sub_node:
|
||||
return {"Error": "Cycle detected!"}
|
||||
return {"Error": "Cycle detected."}
|
||||
iter_node = iter_node['metadata']['parent']
|
||||
|
||||
return None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user