26 |
|
# FIXME With MyProxy delegation this part is completely overlapped with the method manageDelegation |
27 |
|
# in SubmitServer. We should to maintain just one version of the method in a common part |
28 |
|
|
29 |
< |
myproxyserver = self.cfg_params.get('GRID.proxy_server', 'myproxy.cern.ch') |
29 |
> |
try: |
30 |
> |
myproxyserver = Downloader("http://cmsdoc.cern.ch/cms/LCG/crab/config/").config("myproxy_server.conf") |
31 |
> |
myproxyserver = myproxyserver.strip() |
32 |
> |
if myproxyserver is None: |
33 |
> |
raise CrabException("myproxy_server.conf retrieved but empty") |
34 |
> |
except Exception, e: |
35 |
> |
common.logger.info("Problem setting myproxy server endpoint: using myproxy.cern.ch") |
36 |
> |
common.logger.debug(e) |
37 |
> |
myproxyserver = 'myproxy.cern.ch' |
38 |
> |
|
39 |
|
configAPI = {'credential' : self.credentialType, \ |
40 |
|
'myProxySvr' : myproxyserver,\ |
41 |
|
'serverDN' : self.server_dn,\ |