Skip to content

Commit

Permalink
validate proxy VOMS extension. Fix dmwm#5131
Browse files Browse the repository at this point in the history
  • Loading branch information
belforte committed Dec 9, 2021
1 parent 8f61325 commit 65f2a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/CRABClient/ProxyInteractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def validateVO(self):
# make sure that proxy has a VOMS extension for CMS VirtualOrganization
cmd = 'voms-proxy-info --vo --file %s' % self.proxyFile
stdout, stderr, rc = execute_command(cmd, logger=self.logger)
if rc != 0 or stdout != 'cms':
if rc != 0 or 'cms' not in stdout:
msg = "\n".join(['Error executing %s:' % cmd, stdout, stderr])
self.logger.error(msg)
msg = 'proxy %s is not a valid proxy file or has no valid VOMS extension.\n' % self.proxyFile
Expand Down

0 comments on commit 65f2a86

Please sign in to comment.