Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
File Transfer Service
fts-rest
Commits
02fb61a5
Commit
02fb61a5
authored
Nov 10, 2016
by
Maria Arsuaga Rios
Browse files
FTS:705 Default params reuse is None
parent
4ad18bc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fts3rest/fts3rest/lib/JobBuilder.py
View file @
02fb61a5
...
...
@@ -43,7 +43,7 @@ DEFAULT_PARAMS = {
'gridftp'
:
''
,
'job_metadata'
:
None
,
'overwrite'
:
False
,
'reuse'
:
Fals
e
,
'reuse'
:
Non
e
,
'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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment