Skip to content

Commit

Permalink
Merge pull request #7451 from aldbr/v9.0_FIX_dirac-proxy-init
Browse files Browse the repository at this point in the history
[9.0] fix: dirac-proxy-init should not print the group anymore
  • Loading branch information
fstagni authored Feb 8, 2024
2 parents 4ba49cd + 5c69c1e commit ffc2904
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ffc2904

Please sign in to comment.