fix param name for uploadFile

This commit is contained in:
Yuming Zhu 2020-06-23 18:11:46 +08:00 committed by Tomas Kopecek
parent 50bcb6f3bc
commit 65f5b6489b
2 changed files with 13 additions and 9 deletions

View file

@ -775,14 +775,14 @@ class VMExecTask(BaseTaskHandler):
fobj.close()
return len(data)
def uploadDirect(self, filepath, offset, size, hash, data):
def uploadDirect(self, filepath, offset, size, checksum, data):
"""
Upload contents directly to the server.
"""
remotepath = os.path.dirname(os.path.join(self.getUploadDir(), filepath))
filename = os.path.basename(filepath)
self.session.uploadFile(remotepath, filename, size,
hash, offset, data)
checksum, offset, data)
def verifyChecksum(self, path, checksum, algo='sha1'):
local_path = os.path.abspath(os.path.join(self.output_dir, path))