From 80dedca2179f547228bba5d6c430a914e3f1fb85 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 5 May 2020 15:57:40 +0200 Subject: [PATCH] M #-: Deal with qemu-nbd versions --- src/vmm_mad/remotes/lib/lxd/mapper/qcow2.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vmm_mad/remotes/lib/lxd/mapper/qcow2.rb b/src/vmm_mad/remotes/lib/lxd/mapper/qcow2.rb index 1041178791..a440d2fe31 100644 --- a/src/vmm_mad/remotes/lib/lxd/mapper/qcow2.rb +++ b/src/vmm_mad/remotes/lib/lxd/mapper/qcow2.rb @@ -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?