Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /pilot2/pilot/user/generic/proxy.py was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #!/usr/bin/env python
0002 # Licensed under the Apache License, Version 2.0 (the "License");
0003 # you may not use this file except in compliance with the License.
0004 # You may obtain a copy of the License at
0005 # http://www.apache.org/licenses/LICENSE-2.0
0006 #
0007 # Authors:
0008 # - Paul Nilsson, paul.nilsson@cern.ch, 2018
0009 
0010 # from pilot.util.container import execute
0011 
0012 import logging
0013 logger = logging.getLogger(__name__)
0014 
0015 
0016 def verify_proxy(limit=None):
0017     """
0018     Check for a valid voms/grid proxy longer than N hours.
0019     Use `limit` to set required time limit.
0020 
0021     :param limit: time limit in hours (int).
0022     :return: exit code (NOPROXY or NOVOMSPROXY), diagnostics (error diagnostics string).
0023     """
0024 
0025     return 0, ""