Skip to content

Commit

Permalink
checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
jctanner committed Oct 5, 2023
1 parent 5c9eee0 commit 366a3dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dev/scripts.community/cleanup_namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,6 @@ def do_cleanup():

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

if (collection_count + dupe_legacy_count) == 0:
for dupe_owner in dupe_owners:
if dupe_owner not in owners:
print(f'\t\t\tFIXME - add {dupe_owner} to {ns_key} owners')
print(f'\t\t\tFIXME - delete v3 {dupe_name}')

if dupe_legacy_count > 0:
for lns in LegacyNamespace.objects.filter(namespace=dupe_ns):
print(f'\t\t\tlegacy:{lns.name} v3:{lns.namespace}')
Expand All @@ -139,6 +133,12 @@ def do_cleanup():
#for role in LegacyRole.objects.filter(namespace=lns):
# print(f'\t\t\t\t{role.namespace}.{role.name}')

if (collection_count + dupe_legacy_count) == 0:
for dupe_owner in dupe_owners:
if dupe_owner not in owners:
print(f'\t\t\tFIXME - add {dupe_owner} to {ns_key} owners')
print(f'\t\t\tFIXME - delete v3 {dupe_name}')

# import epdb; epdb.st()


Expand Down

0 comments on commit 366a3dc

Please sign in to comment.