mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Do not throw away the container of cross-linked parents
Since we use it twice, the second time to get the id field of each.
This commit is contained in:
parent
4cb061e7db
commit
8b4efbc973
@ -98,8 +98,8 @@ for r in Role.objects.exclude(role_field__startswith='system_').order_by('id'):
|
||||
plus.add(p)
|
||||
|
||||
if plus:
|
||||
plus = [f"{x.content_type!r} {x.object_id} {x.role_field}" for x in plus]
|
||||
sys.stderr.write(f"Role id={r.id} has cross-linked parents: {plus}\n")
|
||||
plus_repr = [f"{x.content_type!r} {x.object_id} {x.role_field}" for x in plus]
|
||||
sys.stderr.write(f"Role id={r.id} has cross-linked parents: {plus_repr}\n")
|
||||
crosslinked_parents[r.id].extend(x.id for x in plus)
|
||||
|
||||
try:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user