M #-: Fixing stderr output from 'qemu-img info' command (#1829)

(cherry picked from commit 62f5037915)
This commit is contained in:
onenhansen authored and Tino Vazquez committed 2022-03-07 19:44:58 +01:00
1 parent b66389a82c
commit f0571e3ca3
1 file changed
+1 -1
+1 -1
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