Skip to content

Commit

Permalink
Merge pull request #12076 from belforte/patch-2
Browse files Browse the repository at this point in the history
skip possible JVM msg in voms-proxy-info output. Fix #12075
  • Loading branch information
amaltaro authored Aug 20, 2024
2 parents 39c5049 + 21a96cb commit 18581bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/WMCore/Credential/Proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ def getTimeLeft(self, proxy=None, checkVomsLife=True):
if not proxy:
proxy = self.getProxyFilename()

timeLeftCmd = 'voms-proxy-info -file ' + proxy + ' -timeleft'
timeLeftCmd = 'voms-proxy-info -file ' + proxy + ' -timeleft | tail -1'
timeLeftLocal, _, self.retcode = execute_command(self.setEnv(timeLeftCmd), self.logger, self.commandTimeout)

if self.retcode != 0:
Expand Down

0 comments on commit 18581bc

Please sign in to comment.