diff options
author | Jeff Bradberry <jeff.bradberry@gmail.com> | 2024-05-21 17:08:47 +0200 |
---|---|---|
committer | Jeff Bradberry <jeff.bradberry@gmail.com> | 2024-06-10 22:36:22 +0200 |
commit | 8b4efbc973ef560d1723f5672ffffe88e0ed9b20 (patch) | |
tree | 7a9109306dabd30bdb81e6bef3da2766fe4b9e5f /tools | |
parent | Add a readme file with instructions (diff) | |
download | awx-8b4efbc973ef560d1723f5672ffffe88e0ed9b20.tar.xz awx-8b4efbc973ef560d1723f5672ffffe88e0ed9b20.zip |
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.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/scripts/ig-hotfix/role_check.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/scripts/ig-hotfix/role_check.py b/tools/scripts/ig-hotfix/role_check.py index 6ca653fc6c..3f11c5d5a8 100644 --- a/tools/scripts/ig-hotfix/role_check.py +++ b/tools/scripts/ig-hotfix/role_check.py @@ -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: |