Skip to content

Commit

Permalink
Pull correct vagrant boxes for AlmaLinux
Browse files Browse the repository at this point in the history
  • Loading branch information
traylenator committed Jan 24, 2024
1 parent fc90bf1 commit 52be2c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/beaker-hostgenerator/hypervisor/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ class Vagrant < BeakerHostGenerator::Hypervisor::Interface
include BeakerHostGenerator::Data

def generate_node(node_info, base_config, bhg_version)
base_config['box'] = if node_info['ostype'] =~ /^centos/
base_config['box'] = case node_info['ostype']
when /^centos/, /^almalinux/

Check warning on line 12 in lib/beaker-hostgenerator/hypervisor/vagrant.rb

View check run for this annotation

Codecov / codecov/patch

lib/beaker-hostgenerator/hypervisor/vagrant.rb#L11-L12

Added lines #L11 - L12 were not covered by tests
node_info['ostype'].sub(/(\d)/, '/\1')
elsif node_info['ostype'] =~ /^fedora/
when /^fedora/

Check warning on line 14 in lib/beaker-hostgenerator/hypervisor/vagrant.rb

View check run for this annotation

Codecov / codecov/patch

lib/beaker-hostgenerator/hypervisor/vagrant.rb#L14

Added line #L14 was not covered by tests
node_info['ostype'].sub(/(\d)/, '/\1') + '-cloud-base'
else
"generic/#{node_info['ostype']}"
Expand Down

0 comments on commit 52be2c8

Please sign in to comment.