From 51593abf0295e9c6347a6562483c25ec4a9d661d Mon Sep 17 00:00:00 2001 From: James Tanner Date: Tue, 3 Oct 2023 15:06:00 -0400 Subject: [PATCH] Checkin. No-Issue Signed-off-by: James Tanner --- dev/community_scripts/cleanup_namespaces.py | 4 ++++ 1 file changed, 4 insertions(+) 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()