Commit 02fb61a5 authored by Maria Arsuaga Rios's avatar Maria Arsuaga Rios
Browse files

FTS:705 Default params reuse is None

parent 4ad18bc5
......@@ -43,7 +43,7 @@ DEFAULT_PARAMS = {
'gridftp': '',
'job_metadata': None,
'overwrite': False,
'reuse': False,
'reuse': None,
'multihop': False,
'source_spacetoken': '',
'spacetoken': '',
......@@ -403,10 +403,11 @@ class JobBuilder(object):
reuse_flag = None
if self.params['multihop']:
reuse_flag = 'H'
elif _safe_flag(self.params['reuse']):
reuse_flag = 'Y'
elif self.params['reuse'] is not None:
reuse_flag = 'N'
if _safe_flag(self.params['reuse']):
reuse_flag = 'Y'
else:
reuse_flag = 'N'
self.is_bringonline = self.params['copy_pin_lifetime'] > 0 or self.params['bring_online'] > 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment