Correct proper type of uploads
This commit is contained in:
parent
891aeca388
commit
9d7067469a
|
@ -876,7 +876,7 @@ def ceph_volume_upload(config, pool, volume, image_format, image_file):
|
|||
|
||||
bar = UploadProgressBar(image_file, end_message="Parsing file on remote side...", end_nl=False)
|
||||
upload_data = MultipartEncoder(
|
||||
fields={ 'file': ('filename', open(image_file, 'rb'), 'text/plain')}
|
||||
fields={ 'file': ('filename', open(image_file, 'rb'), 'application/octet-stream')}
|
||||
)
|
||||
upload_monitor = MultipartEncoderMonitor(upload_data, bar.update)
|
||||
|
||||
|
|
|
@ -435,7 +435,7 @@ def ova_upload(config, name, ova_file, params):
|
|||
|
||||
bar = UploadProgressBar(ova_file, end_message="Parsing file on remote side...", end_nl=False)
|
||||
upload_data = MultipartEncoder(
|
||||
fields={ 'file': ('filename', open(ova_file, 'rb'), 'text/plain')}
|
||||
fields={ 'file': ('filename', open(ova_file, 'rb'), 'application/octet-stream')}
|
||||
)
|
||||
upload_monitor = MultipartEncoderMonitor(upload_data, bar.update)
|
||||
|
||||
|
|
Loading…
Reference in New Issue