Skip to content

Commit 80efb38

Browse files
authored
Merge pull request #792 from HeloiseJoffe/fix/delete_proxy
fix: delete proxy without group
2 parents 6b10d1a + 36a1461 commit 80efb38

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

src/WebAppDIRAC/WebApp/handler/ProxyManagerHandler.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,8 @@ def web_deleteProxies(self, idList=None):
8383
if not (webIds := list(json.loads(idList))):
8484
return {"success": "false", "error": "No valid id's specified"}
8585

86-
idList = []
87-
for id in webIds:
88-
spl = id.split("@")
89-
dn = "@".join(spl[:-1])
90-
idList.append((dn,))
91-
retVal = gProxyManager.deleteProxyBundle(idList)
92-
# for uid in webIds:
93-
# spl = uid.split("@")
94-
# dn = "@".join(spl[:-1])
95-
# idList.append(dn)
96-
# retVal = yield self.threadTask(ProxyManagerClient().deleteProxy, idList) # pylint: disable=no-member
86+
retVal = gProxyManager.deleteProxyBundle(webIds)
87+
9788
if retVal["OK"]:
9889
return {"success": "true", "result": retVal["Value"]}
9990
return {"success": "false", "error": retVal["Message"]}

0 commit comments

Comments
 (0)