Inherit pyvers from openstacklib::defaults
Depends-On: I84b767921d151a61429b2c89e6372c4b447f0d7d Change-Id: I0c13af5bbafc347078d010ebbe2358af22b8e0d2
This commit is contained in:
parent
d46bab8b31
commit
1e32e3c669
@ -4,13 +4,7 @@
|
||||
#
|
||||
class cinder::params {
|
||||
include ::openstacklib::defaults
|
||||
|
||||
if ($::os_package_type == 'debian') or ($::os['name'] == 'Fedora') or
|
||||
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
|
||||
$pyvers = '3'
|
||||
} else {
|
||||
$pyvers = ''
|
||||
}
|
||||
$pyvers = $::openstacklib::defaults::pyvers
|
||||
|
||||
$client_package = "python${pyvers}-cinderclient"
|
||||
$group = 'cinder'
|
||||
|
@ -46,11 +46,7 @@ describe 'cinder::client' do
|
||||
let(:platform_params) do
|
||||
case facts[:osfamily]
|
||||
when 'Debian'
|
||||
if facts[:os_package_type] == 'debian'
|
||||
{ :client_package_name => 'python3-cinderclient' }
|
||||
else
|
||||
{ :client_package_name => 'python-cinderclient' }
|
||||
end
|
||||
{ :client_package_name => 'python3-cinderclient' }
|
||||
when 'RedHat'
|
||||
{ :client_package_name => 'python-cinderclient' }
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user