lib/facter/resolvers/xen.rb in facter-4.3.1 vs lib/facter/resolvers/xen.rb in facter-4.4.0
- old
+ new
@@ -43,10 +43,10 @@
output = Facter::Core::Execution.execute("#{xen_command} list", logger: log)
return if output.empty?
output.each_line do |line|
- next if line =~ /Domain-0|Name/
+ next if /Domain-0|Name/.match?(line)
domain = line.match(/^([^\s]*)\s/)
domain = domain&.captures&.first
domains << domain if domain
end