lib/beaker-hostgenerator/hypervisor/abs.rb in beaker-hostgenerator-2.1.0 vs lib/beaker-hostgenerator/hypervisor/abs.rb in beaker-hostgenerator-2.2.0

- old
+ new

@@ -22,10 +22,10 @@ # the hashes together. base_config = base_generate_node(node_info, base_config, bhg_version, :vmpooler, :abs) case node_info['ostype'] when /^(almalinux|centos|redhat|rocky)/ - base_config['template'] ||= base_config['platform'].gsub(/^el/, $1) + base_config['template'] ||= base_config['platform'].gsub(/^el/, ::Regexp.last_match(1)) when /^fedora/ base_config['template'] ||= base_config['platform'] when /^ubuntu/ base_template = node_info['ostype'].sub('ubuntu', 'ubuntu-') arch = case node_info['bits']