From 5c69c1ee707d36c51bcbd0d51e4858bf908470a2 Mon Sep 17 00:00:00 2001 From: aldbr Date: Thu, 8 Feb 2024 10:31:28 +0100 Subject: [PATCH] fix: dirac-proxy-init should not print the group anymore --- .../FrameworkSystem/scripts/dirac_proxy_init.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py b/src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py index cb41e3c4543..193cf19db71 100755 --- a/src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py +++ b/src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py @@ -164,22 +164,11 @@ def printInfo(self): if self.__uploadedInfo: gLogger.notice("\nProxies uploaded:") maxDNLen = 0 - maxGroupLen = 0 for userDN in self.__uploadedInfo: maxDNLen = max(maxDNLen, len(userDN)) - for group in self.__uploadedInfo[userDN]: - maxGroupLen = max(maxGroupLen, len(group)) - gLogger.notice(f" {'DN'.ljust(maxDNLen)} | {'Group'.ljust(maxGroupLen)} | Until (GMT)") + gLogger.notice(f" {'DN'.ljust(maxDNLen)} | Until (GMT)") for userDN in self.__uploadedInfo: - for group in self.__uploadedInfo[userDN]: - gLogger.notice( - " %s | %s | %s" - % ( - userDN.ljust(maxDNLen), - group.ljust(maxGroupLen), - self.__uploadedInfo[userDN][group].strftime("%Y/%m/%d %H:%M"), - ) - ) + gLogger.notice(f" {userDN.ljust(maxDNLen)} | {self.__uploadedInfo[userDN].strftime('%Y/%m/%d %H:%M')}") def checkCAs(self): caDir = getCAsLocation()