From 36a14613bce81f73b478988d4f700197f53bf1f6 Mon Sep 17 00:00:00 2001 From: HeloiseJoffe Date: Tue, 21 Apr 2026 11:21:43 +0200 Subject: [PATCH] fix: delete proxy without group --- .../WebApp/handler/ProxyManagerHandler.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/WebAppDIRAC/WebApp/handler/ProxyManagerHandler.py b/src/WebAppDIRAC/WebApp/handler/ProxyManagerHandler.py index 0b6f672f..f778156a 100644 --- a/src/WebAppDIRAC/WebApp/handler/ProxyManagerHandler.py +++ b/src/WebAppDIRAC/WebApp/handler/ProxyManagerHandler.py @@ -83,17 +83,8 @@ def web_deleteProxies(self, idList=None): if not (webIds := list(json.loads(idList))): return {"success": "false", "error": "No valid id's specified"} - idList = [] - for id in webIds: - spl = id.split("@") - dn = "@".join(spl[:-1]) - idList.append((dn,)) - retVal = gProxyManager.deleteProxyBundle(idList) - # for uid in webIds: - # spl = uid.split("@") - # dn = "@".join(spl[:-1]) - # idList.append(dn) - # retVal = yield self.threadTask(ProxyManagerClient().deleteProxy, idList) # pylint: disable=no-member + retVal = gProxyManager.deleteProxyBundle(webIds) + if retVal["OK"]: return {"success": "true", "result": retVal["Value"]} return {"success": "false", "error": retVal["Message"]}