diff --git a/dev/community_scripts/cleanup_namespaces.py b/dev/community_scripts/cleanup_namespaces.py index 3616351d60..d59ff95077 100644 --- a/dev/community_scripts/cleanup_namespaces.py +++ b/dev/community_scripts/cleanup_namespaces.py @@ -5,6 +5,7 @@ from galaxy_ng.app.models import Namespace from galaxy_ng.app.api.v1.models import LegacyNamespace +from galaxy_ng.app.api.v1.models import LegacyRole from galaxy_ng.app.utils import rbac from pulp_ansible.app.models import CollectionVersion @@ -78,6 +79,9 @@ def do_cleanup(): for lns in LegacyNamespace.objects.filter(namespace=dupe_ns): print(f'\t\t\tlegacy:{lns.name} v3:{lns.namespace}') + for role in LegacyRole.objects.filter(namespace=lns): + print(f'\t\t\t\t{role.namespace}.{role.name}') + # import epdb; epdb.st()