1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #-: Fixing bug in vcenter/cp (#1794)

to handle qemu-img command better

(cherry picked from commit 72f545a7d8ecec1f7ac1c112494a669103c04267)
This commit is contained in:
onenhansen 2022-02-21 05:18:09 -07:00 committed by Tino Vazquez
parent 0639397eb4
commit 065af200e1
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -139,7 +139,7 @@ if VCenterDriver::FileHelper.remote_or_needs_unpack?(img_path)
begin
Open3.popen3("qemu-img info #{temp_file}") do
|_stdin, stdout, stderr, wait_thr|
if !stderr.nil?
if wait_thr.value != 0
STDERR.puts "'qemu-img info' stderr: #{stderr}"
raise StandardError
end