Merge "Expect python3 client package in CentOS8"

This commit is contained in:
Zuul 2020-03-31 16:09:54 +00:00 committed by Gerrit Code Review
commit 78815081c5
1 changed files with 9 additions and 1 deletions

View File

@ -29,7 +29,15 @@ describe 'watcher::client' do
when 'Debian'
{ :client_package_name => 'python3-watcherclient' }
when 'RedHat'
{ :client_package_name => 'python-watcherclient' }
if facts[:operatingsystem] == 'Fedora'
{ :client_package_name => 'python3-watcherclient' }
else
if facts[:operatingsystemmajrelease] > '7'
{ :client_package_name => 'python3-watcherclient' }
else
{ :client_package_name => 'python-watcherclient' }
end
end
end
end