ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/SchedulerRemoteglidein.py
(Generate patch)

Comparing COMP/CRAB/python/SchedulerRemoteglidein.py (file contents):
Revision 1.4 by belforte, Tue Oct 2 14:56:52 2012 UTC vs.
Revision 1.5 by belforte, Wed Oct 10 21:10:20 2012 UTC

# Line 81 | Line 81 | class SchedulerRemoteglidein(SchedulerGr
81              msg+="\n Use GRID.se_white_list and/or GRID.se_black_list instead"
82              raise CrabException(msg)
83  
84 +
85 +        # make sure proxy FQAN has not changed since last time
86 +        command =  "voms-proxy-info -identity -fqan 2>/dev/null"
87 +        command += " | head -2"
88 +        identity = runCommand(command)
89 +        idfile = common.work_space.shareDir() + "GridIdentity"
90 +        if os.access(idfile, os.F_OK) :
91 +            # identity file exists from previous commands
92 +            f=open(idfile, 'r')
93 +            idFromFile=f.read()
94 +            f.close()
95 +        else :
96 +            # create it
97 +            f=open(idfile, 'w')
98 +            f.write(identity)
99 +            f.close()
100 +            idFromFile = identity
101 +
102 +        if identity != idFromFile:
103 +            msg =  "Wrong Grid Credentials:\n%s" % identity
104 +            msg += "\nMake sure you have "
105 +            msg += " DN, FQAN =\n%s" % idFromFile
106 +            raise CrabException(msg)
107 +
108          return
109      
110      def userName(self):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines