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 d04095d commit 895b219
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dev/community_scripts/cleanup_namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,14 @@ def do_cleanup():
dupe_ns = Namespace.objects.filter(name=dupe_name).first()
collection_count = CollectionVersion.objects.filter(namespace=dupe_name).count()
dupe_owners = rbac.get_v3_namespace_owners(dupe_ns)
dupe_legacy_count = LegacyNamespace.objects.filter(namespace=ns).count()
dupe_legacy_count = LegacyNamespace.objects.filter(namespace=dupe_ns).count()

print(f'\t\t{dupe_name} legacy-ns:{dupe_legacy_count} collections:{collection_count} owners:{dupe_owners}')

if dupe_legacy_count > 0:
for lns in LegacyNamespace.objects.filter(namespace=dupe_ns):
print('\t\t\tlegacy:{lns.name} v3:{lns.namespace}')

# import epdb; epdb.st()


Expand Down

0 comments on commit 895b219

Please sign in to comment.