mirror of
https://github.com/ansible/awx.git
synced 2024-10-26 16:25:06 +03:00
Initial check
This commit is contained in:
parent
fb860d76ce
commit
b17f0a188b
2
tools/scripts/ig-hotfix/.gitignore
vendored
Normal file
2
tools/scripts/ig-hotfix/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*~
|
||||
customer-backup.tar.*
|
6
tools/scripts/ig-hotfix/role_check.py
Normal file
6
tools/scripts/ig-hotfix/role_check.py
Normal file
@ -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))
|
Loading…
Reference in New Issue
Block a user