Readd erroneously removed blk_file.write
This commit is contained in:
parent
baac8f24fd
commit
beb62c9f3d
|
@ -316,6 +316,8 @@ def upload_ova(pool, name, ova_size):
|
||||||
# Open the temporary blockdev and seek to byte 0
|
# Open the temporary blockdev and seek to byte 0
|
||||||
blk_file = open(temp_blockdev, 'wb')
|
blk_file = open(temp_blockdev, 'wb')
|
||||||
blk_file.seek(0)
|
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)
|
# Close blk_file (and flush the buffers)
|
||||||
blk_file.close()
|
blk_file.close()
|
||||||
# Close vmdk_file
|
# Close vmdk_file
|
||||||
|
|
Loading…
Reference in New Issue