Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
fb8e2ca6
Commit
fb8e2ca6
authored
Dec 18, 2019
by
Markus Scheidgen
Browse files
Remove https from curl command.
parent
813048e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
nomad/app/api/upload.py
View file @
fb8e2ca6
...
...
@@ -521,7 +521,7 @@ class UploadCommandResource(Resource):
def
get
(
self
):
""" Get url and example command for shell based uploads. """
token
=
generate_upload_token
(
g
.
user
)
upload_url
=
'%s/uploads/?token=%s'
%
(
config
.
api_url
(),
token
)
upload_url
=
'%s/uploads/?token=%s'
%
(
config
.
api_url
(
ssl
=
False
),
token
)
upload_url_with_name
=
upload_url
+
'&name=<name>'
# upload_command = 'curl -X PUT "%s" -F file=@<local_file>' % upload_url
...
...
Write
Preview
Supports
Markdown
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