From 366a3dce83004ca99c384cb2e796dc2d527bc7b8 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Wed, 4 Oct 2023 23:53:34 -0400 Subject: [PATCH] checkin --- dev/scripts.community/cleanup_namespaces.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dev/scripts.community/cleanup_namespaces.py b/dev/scripts.community/cleanup_namespaces.py index 0a24886713..5079079a01 100644 --- a/dev/scripts.community/cleanup_namespaces.py +++ b/dev/scripts.community/cleanup_namespaces.py @@ -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}') @@ -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()