Expect python3 client package in CentOS8

In CentOS, we expect to have python3 client package in 8.x while we
expect to have python2 in 7.x .
Fix unit tests to expect the correct version according to os major
version.

Change-Id: I8f0277f2eb211203517c955c60bb6ae3c4d8896e
This commit is contained in:
Takashi Kajinami 2020-03-30 19:39:41 +09:00
parent abc57251bd
commit 0753baf798
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,11 @@ describe 'nova::client' do
when 'Debian'
{ :client_package_name => 'python3-novaclient' }
when 'RedHat'
{ :client_package_name => 'python-novaclient' }
if facts[:operatingsystemmajrelease] > '7'
{ :client_package_name => 'python3-novaclient' }
else
{ :client_package_name => 'python-novaclient' }
end
end
end