mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-03 21:52:31 +09:00
M #-: Fixing bug in vcenter/cp (#1794)
to handle qemu-img command better
(cherry picked from commit 72f545a7d8)
This commit is contained in:
1 parent
0639397eb4
commit
065af200e1
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user