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 53063d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/beaker-hostgenerator/hypervisor/vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ class Vagrant < BeakerHostGenerator::Hypervisor::Interface
def generate_node(node_info, base_config, bhg_version)
base_config['box'] = if node_info['ostype'] =~ /^centos/
node_info['ostype'].sub(/(\d)/, '/\1')
elsif node_info['ostype'] =~ /^almalinux/
node_info['ostype'].sub(/(\d)/, '/\1')

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#L13-L14

Added lines #L13 - L14 were not covered by tests
elsif node_info['ostype'] =~ /^fedora/
node_info['ostype'].sub(/(\d)/, '/\1') + '-cloud-base'
else
Expand Down

0 comments on commit 53063d4

Please sign in to comment.