1
0
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:
onenhansen 2022-03-07 11:44:32 -07:00 committed by Tino Vazquez
parent b66389a82c
commit f0571e3ca3
No known key found for this signature in database
GPG Key ID: 14201E424D02047E

View File

@ -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