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: I9ef013426ab2a0419422a2452021dfbdf33f68bc
This commit is contained in:
parent
e30eaf73e7
commit
70c4fffa6b
@ -29,7 +29,15 @@ describe 'manila::client' do
|
||||
when 'Debian'
|
||||
{ :client_package => 'python3-manilaclient' }
|
||||
when 'RedHat'
|
||||
{ :client_package => 'python-manilaclient' }
|
||||
if facts[:operatingsystem] == 'Fedora'
|
||||
{ :client_package => 'python3-manilaclient' }
|
||||
else
|
||||
if facts[:operatingsystemmajrelease] > '7'
|
||||
{ :client_package => 'python3-manilaclient' }
|
||||
else
|
||||
{ :client_package => 'python-manilaclient' }
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user