Skip to content

Commit

Permalink
Rocky does as weel not have a seperate venv package.
Browse files Browse the repository at this point in the history
  • Loading branch information
Heidistein committed Jul 3, 2023
1 parent 175ac42 commit 6266172
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
##
## CentOS has no extra package for venv
##
unless $facts['os']['name'] == 'CentOS' {
unless $facts['os']['name'] in ['CentOS', 'Rocky'] {
package { 'python-venv':
ensure => $python::venv,
name => "${python}-venv",
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/python_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
it { is_expected.to contain_package('pip') }
end

if %w[Archlinux CentOS].include?(facts[:os]['name'])
if %w[Archlinux CentOS Rocky].include?(facts[:os]['name'])
it { is_expected.not_to contain_package('python-venv') }
else
it { is_expected.to contain_package('python-venv') }
Expand Down Expand Up @@ -58,7 +58,7 @@
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_package('pip').with(ensure: 'present') }

it { is_expected.to contain_package('python-venv').with(ensure: 'present') } unless facts[:os]['name'] == 'CentOS'
it { is_expected.to contain_package('python-venv').with(ensure: 'present') } unless %w[CentOS, Rocky].include?(facts[:os]['name'])
end

case facts[:os]['family']
Expand Down

0 comments on commit 6266172

Please sign in to comment.