Skip to content

Commit

Permalink
Checkin.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <[email protected]>
  • Loading branch information
jctanner committed Oct 3, 2023
1 parent a8a5029 commit 51593ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev/community_scripts/cleanup_namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()


Expand Down

0 comments on commit 51593ab

Please sign in to comment.