mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-03 21:52:31 +09:00
M #-: Fixing stderr output from 'qemu-img info' command (#1829)
(cherry picked from commit 62f5037915)
This commit is contained in:
1 parent
b66389a82c
commit
f0571e3ca3
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user