Commit b2ec1266 by Máhonfai Bálint

Remove new name parameter, it can be merged with path

parent 8bf391bc
...@@ -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):
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment