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
1ef56c91
Commit
1ef56c91
authored
Jan 20, 2021
by
Mihai Patrascoiu
Browse files
Only try to JSON-ify job metadata and file metadata if not None in the FTS client
parent
103fe48d
Pipeline
#2246524
failed with stage
in 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/fts3/cli/jobsubmitter.py
View file @
1ef56c91
...
...
@@ -220,8 +220,10 @@ class JobSubmitter(Base):
params
[
k
]
=
v
# JSONify metadata
params
[
'job_metadata'
]
=
_metadata
(
params
[
'job_metadata'
])
params
[
'file_metadata'
]
=
_metadata
(
params
[
'file_metadata'
])
if
params
[
'job_metadata'
]
is
not
None
:
params
[
'job_metadata'
]
=
_metadata
(
params
[
'job_metadata'
])
if
params
[
'file_metadata'
]
is
not
None
:
params
[
'file_metadata'
]
=
_metadata
(
params
[
'file_metadata'
])
return
params
def
_prepare_options
(
self
):
...
...
Joao Pedro Lopes
@batistal
mentioned in commit
fts-rest-flask@1ade1e3d
·
Oct 12, 2021
mentioned in commit
fts-rest-flask@1ade1e3d
mentioned in commit fts-rest-flask@1ade1e3dc5eccd88058a033140423cd6cf7454b8
Toggle commit list
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