From 6bdf95c43cd8b42f404a02042c1a2b4c5bacfe4d Mon Sep 17 00:00:00 2001 From: James Tanner Date: Wed, 4 Oct 2023 23:57:53 -0400 Subject: [PATCH] checkin --- dev/scripts.community/cleanup_namespaces.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev/scripts.community/cleanup_namespaces.py b/dev/scripts.community/cleanup_namespaces.py index 5079079a01..63a0fee813 100644 --- a/dev/scripts.community/cleanup_namespaces.py +++ b/dev/scripts.community/cleanup_namespaces.py @@ -37,6 +37,7 @@ 'sigma', 'rmasters', 'network', + 'roopamg', ] @@ -129,6 +130,9 @@ def do_cleanup(): for lns in LegacyNamespace.objects.filter(namespace=dupe_ns): print(f'\t\t\tlegacy:{lns.name} v3:{lns.namespace}') print(f'\t\t\t\tFIXME - set v1:{lns} provider to {ns}') + if ns_key in allowed_to_fix: + lns.namespace = ns + lns.save() #for role in LegacyRole.objects.filter(namespace=lns): # print(f'\t\t\t\t{role.namespace}.{role.name}')