Skip to content

Commit

Permalink
fix: dirac-proxy-init should not print the group anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
aldbr committed Feb 8, 2024
1 parent 7e60c05 commit 03a7e11
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/DIRAC/FrameworkSystem/scripts/dirac_proxy_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 03a7e11

Please sign in to comment.