Readd erroneously removed blk_file.write

This commit is contained in:
Joshua Boniface 2020-11-10 15:32:43 -05:00
parent baac8f24fd
commit beb62c9f3d
1 changed files with 2 additions and 0 deletions

View File

@ -316,6 +316,8 @@ def upload_ova(pool, name, ova_size):
# Open the temporary blockdev and seek to byte 0
blk_file = open(temp_blockdev, 'wb')
blk_file.seek(0)
# Write the contents of vmdk_file into blk_file
blk_file.write(vmdk_file.read())
# Close blk_file (and flush the buffers)
blk_file.close()
# Close vmdk_file