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

to handle qemu-img command better

(cherry picked from commit 72f545a7d8)
This commit is contained in:
onenhansen authored and Tino Vazquez committed 2022-02-21 13:19:23 +01:00
1 parent 0639397eb4
commit 065af200e1
1 file changed
+1 -1
+1 -1
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