diff options
author | Jeff Bradberry <jeff.bradberry@gmail.com> | 2024-04-30 14:56:19 +0200 |
---|---|---|
committer | Jeff Bradberry <jeff.bradberry@gmail.com> | 2024-06-10 22:36:22 +0200 |
commit | b17f0a188bcc8178bb8e12f54c340edaee19a1ab (patch) | |
tree | 40b4d556924e1fe9866748096a4aa6d51d149eb5 /tools/scripts | |
parent | Add receptor work list command to sosreport (#15207) (diff) | |
download | awx-b17f0a188bcc8178bb8e12f54c340edaee19a1ab.tar.xz awx-b17f0a188bcc8178bb8e12f54c340edaee19a1ab.zip |
Initial check
Diffstat (limited to 'tools/scripts')
-rw-r--r-- | tools/scripts/ig-hotfix/.gitignore | 2 | ||||
-rw-r--r-- | tools/scripts/ig-hotfix/role_check.py | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tools/scripts/ig-hotfix/.gitignore b/tools/scripts/ig-hotfix/.gitignore new file mode 100644 index 0000000000..a946df02b7 --- /dev/null +++ b/tools/scripts/ig-hotfix/.gitignore @@ -0,0 +1,2 @@ +*~ +customer-backup.tar.* diff --git a/tools/scripts/ig-hotfix/role_check.py b/tools/scripts/ig-hotfix/role_check.py new file mode 100644 index 0000000000..57cc9973f9 --- /dev/null +++ b/tools/scripts/ig-hotfix/role_check.py @@ -0,0 +1,6 @@ +from collections import Counter + +from awx.main.models.rbac import Role + + +print(Counter(r.id == getattr(getattr(r.content_object, r.role_field, None), 'id', None) for r in Role.objects.all() if r.content_type)) |