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:
parent
0639397eb4
commit
065af200e1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user