M #: Improve usage detection for nbd devices (LXC) (#1903)

This commit is contained in:
Christian González authored and GitHub committed 2022-04-06 17:56:23 +02:00
1 parent 736aca84b9
commit 7a45ed598e
1 file changed
+1 -1
@@ -101,7 +101,7 @@ class Qcow2Mapper
m = p['name'].match(/nbd(\d+)/)
next unless m
nbds << m[1].to_i
nbds << m[1].to_i if !p['uuid'].nil? && !p['uuid'].empty?
end
nbds_max.times do |i| # if nbds_max returns 0 block is skipped