lib/beaker-hostgenerator/hypervisor/abs.rb in beaker-hostgenerator-2.6.0 vs lib/beaker-hostgenerator/hypervisor/abs.rb in beaker-hostgenerator-2.7.0
- old
+ new
@@ -22,11 +22,11 @@
# the hashes together.
base_config = base_generate_node(node_info, base_config, bhg_version, :vmpooler, :abs)
case node_info['ostype']
when /^(almalinux|centos|oracle|redhat|rocky|scientific)/
- base_config['template'] ||= base_config['platform'].gsub(/^el/, ::Regexp.last_match(1))
- when /^amazon/, /^fedora/, /^opensuse/, /^panos/
+ base_config['template'] ||= base_config['platform']&.gsub(/^el/, ::Regexp.last_match(1))
+ when /^aix/, /^amazon/, /^fedora/, /^opensuse/, /^panos/
base_config['template'] ||= base_config['platform']
when /^(debian|ubuntu)/
os = Regexp.last_match(1)
base_template = node_info['ostype'].sub(os, "#{os}-")
arch = case node_info['bits']