File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3535 # #
3636 # # CentOS has no extra package for venv
3737 # #
38- unless $facts [' os' ][' name ' ] == ' CentOS ' {
38+ unless $facts [' os' ][' family ' ] == ' RedHat ' {
3939 package { 'python-venv' :
4040 ensure => $python::venv ,
4141 name => " ${python} -venv" ,
Original file line number Diff line number Diff line change 2323 it { is_expected . to contain_package ( 'pip' ) }
2424 end
2525
26- if %w[ Archlinux CentOS ] . include? ( facts [ :os ] [ 'name ' ] )
26+ if %w[ Archlinux RedHat ] . include? ( facts [ :os ] [ 'family ' ] )
2727 it { is_expected . not_to contain_package ( 'python-venv' ) }
2828 else
2929 it { is_expected . to contain_package ( 'python-venv' ) }
6060 it { is_expected . to compile . with_all_deps }
6161 it { is_expected . to contain_package ( 'pip' ) . with ( ensure : 'present' ) }
6262
63- it { is_expected . to contain_package ( 'python-venv' ) . with ( ensure : 'present' ) } unless facts [ :os ] [ 'name ' ] == 'CentOS '
63+ it { is_expected . to contain_package ( 'python-venv' ) . with ( ensure : 'present' ) } unless facts [ :os ] [ 'family ' ] == 'RedHat '
6464 end
6565
6666 case facts [ :os ] [ 'family' ]
You can’t perform that action at this time.
0 commit comments