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:
parent
55f2cc3060
commit
80dedca217
@ -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?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user