Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b2ec1266
authored
Feb 25, 2021
by
Máhonfai Bálint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove new name parameter, it can be merged with path
parent
8bf391bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
circle/dashboard/store_api.py
+1
-2
circle/vm/operations.py
+1
-1
No files found.
circle/dashboard/store_api.py
View file @
b2ec1266
...
@@ -135,12 +135,11 @@ class Store(object):
...
@@ -135,12 +135,11 @@ class Store(object):
r
=
self
.
_request_cmd
(
"SSH_UPLOAD"
)
r
=
self
.
_request_cmd
(
"SSH_UPLOAD"
)
return
r
.
json
()[
'LINK'
],
r
.
json
()[
'PORT'
]
return
r
.
json
()[
'LINK'
],
r
.
json
()[
'PORT'
]
def
ssh_upload_finished
(
self
,
uploaded_name
,
path
,
new_name
):
def
ssh_upload_finished
(
self
,
uploaded_name
,
path
):
self
.
_request_cmd
(
self
.
_request_cmd
(
"SSH_UPLOAD_FINISHED"
,
"SSH_UPLOAD_FINISHED"
,
FILENAME
=
uploaded_name
,
FILENAME
=
uploaded_name
,
PATH
=
path
,
PATH
=
path
,
NEWNAME
=
new_name
)
)
def
remove
(
self
,
path
):
def
remove
(
self
,
path
):
...
...
circle/vm/operations.py
View file @
b2ec1266
...
@@ -391,7 +391,7 @@ class ExportDiskOperation(InstanceOperation):
...
@@ -391,7 +391,7 @@ class ExportDiskOperation(InstanceOperation):
store
=
Store
(
user
)
store
=
Store
(
user
)
upload_link
,
port
=
store
.
request_ssh_upload
()
upload_link
,
port
=
store
.
request_ssh_upload
()
file_name
=
disk
.
export
(
disk_format
,
upload_link
,
port
,
task
)
file_name
=
disk
.
export
(
disk_format
,
upload_link
,
port
,
task
)
store
.
ssh_upload_finished
(
file_name
,
''
,
exported_name
+
'.'
+
disk_format
)
store
.
ssh_upload_finished
(
file_name
,
exported_name
+
'.'
+
disk_format
)
@register_operation
@register_operation
...
...
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