Skip to content
GitLab
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
dcbe8b8a
Commit
dcbe8b8a
authored
Jan 18, 2021
by
Mihai Patrascoiu
Browse files
FTS-1666
: Treat params::job_metadata correctly when it is already a dictionary
parent
c82e96dc
Pipeline
#2241105
failed with stage
in 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/fts3rest/fts3rest/lib/JobBuilder.py
View file @
dcbe8b8a
...
...
@@ -20,6 +20,7 @@ import time
import
types
import
uuid
import
pylons
import
json
from
datetime
import
datetime
from
urlparse
import
urlparse
,
parse_qsl
,
ParseResult
...
...
@@ -102,6 +103,8 @@ def _validate_url(url):
raise
ValueError
(
'Missing host (%s)'
%
url
.
geturl
())
def
_metadata
(
data
):
if
isinstance
(
data
,
dict
):
return
data
try
:
return
json
.
loads
(
data
)
except
:
...
...
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
Supports
Markdown
0%
Try again
or
attach a new 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