Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Dec 14, 2023
1 parent a52b5fa commit 9cb3fdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/install/venv.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
include python

# Main python package bundle venv on some operating systems
unless $facts['os']['family'] in ['Archlinux', 'RedHat', 'FreeBSD'] {
unless $facts['os']['family'] in ['Archlinux', 'FreeBSD', 'RedHat'] {
package { 'python-venv':
ensure => $python::venv,
name => "${python::install::python}-venv",
Expand Down
2 changes: 2 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
}
$manage_venv_package = $facts['os']['family'] ? {
'Archlinux' => false,
'FreeBSD' => false,
'RedHat' => false,
default => true,
}
}
2 changes: 1 addition & 1 deletion spec/classes/install/venv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class { 'python':
PP
end

if %w[Archlinux RedHat FreeBSD].include?(facts[:os]['family'])
if %w[Archlinux FreeBSD RedHat].include?(facts[:os]['family'])
it { is_expected.not_to contain_package('python-venv') }
else
it { is_expected.to contain_package('python-venv').with(ensure: 'present') }
Expand Down

0 comments on commit 9cb3fdc

Please sign in to comment.