mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
M #-: Fixing stderr output from 'qemu-img info' command (#1829)
(cherry picked from commit 62f5037915eedca7187a71e079261174e556c840)
This commit is contained in:
parent
b66389a82c
commit
f0571e3ca3
@ -140,7 +140,7 @@ if VCenterDriver::FileHelper.remote_or_needs_unpack?(img_path)
|
||||
Open3.popen3("qemu-img info #{temp_file}") do
|
||||
|_stdin, stdout, stderr, wait_thr|
|
||||
if wait_thr.value != 0
|
||||
STDERR.puts "'qemu-img info' stderr: #{stderr}"
|
||||
STDERR.puts "'qemu-img info' stderr: #{stderr.value}"
|
||||
raise StandardError
|
||||
end
|
||||
file_type=stdout.read.split("\n")[1].split(':')[1].lstrip
|
||||
|
Loading…
x
Reference in New Issue
Block a user