1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-10 01:17:40 +03:00

M #-: Deal with qemu-nbd versions

This commit is contained in:
Ruben S. Montero 2020-05-05 15:57:40 +02:00
parent 55f2cc3060
commit 80dedca217
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -85,7 +85,8 @@ class Qcow2Mapper < Mapper
return "0.0.0" unless rc.zero?
match_v = out.match(/qemu-nbd version (.*)$/)
match_v = out.match(/qemu-nbd ((?:[0-9]+\.?)+) \(/)
match_v = out.match(/qemu-nbd version (.*)$/) if match_v.nil?
return "0.0.0" if match_v.nil?