50 |
|
if ( self.cfg_params.get('GRID.use_cream',None) ): |
51 |
|
RB='CREAM' |
52 |
|
if not RB: return None |
53 |
– |
glite_config = None |
53 |
|
rb_param_file = None |
54 |
|
configFileName = 'glite_wms_'+str(RB)+'.conf' |
55 |
|
|
56 |
< |
results = Downloader(url, os.getcwd()) |
56 |
> |
results = Downloader(url) |
57 |
|
gliteConfig = results.filePath(configFileName) |
58 |
|
|
59 |
< |
if (glite_config ): |
60 |
< |
rb_param_file = glite_config |
59 |
> |
if (gliteConfig ): |
60 |
> |
rb_param_file = gliteConfig |
61 |
|
return rb_param_file |
62 |
|
|
63 |
|
def ce_list(self): |
235 |
|
|
236 |
|
txt += '}\n' |
237 |
|
return txt |
238 |
+ |
|
239 |
+ |
def listMatch(self, dest, full): |
240 |
+ |
matching='fast' |
241 |
+ |
|
242 |
+ |
if self.boss().schedulerConfig['name'] == 'SchedulerGLite' : |
243 |
+ |
taskId=common._db.getTask() |
244 |
+ |
req=str(self.sched_parameter(1,taskId)) |
245 |
+ |
sites = self.boss().schedSession().matchResources(taskId, requirements=req) |
246 |
+ |
else : |
247 |
+ |
sites = SchedulerGrid.listMatch(self, dest, full) |
248 |
+ |
|
249 |
+ |
if full == True: matching='full' |
250 |
+ |
common.logger.debug("list of available site ( "+str(matching) +" matching ) : "+str(sites)) |
251 |
+ |
|
252 |
+ |
return sites |