From 03a7e113557d7c71d315c3c7e6e87326fdb59cb9 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 --- .../scripts/dirac_proxy_init.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py b/src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py index cb41e3c4543..f0a9a0d1895 100755 --- a/src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py +++ b/src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py @@ -167,19 +167,15 @@ def printInfo(self): 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( + " %s | %s | %s" + % ( + userDN.ljust(maxDNLen), + self.__uploadedInfo[userDN].strftime("%Y/%m/%d %H:%M"), ) + ) def checkCAs(self): caDir = getCAsLocation()