Merge "Inherit pyvers from openstacklib::defaults"
This commit is contained in:
commit
0e918ef498
@ -4,13 +4,8 @@
|
||||
#
|
||||
class heat::params {
|
||||
include ::openstacklib::defaults
|
||||
$pyvers = $::openstacklib::defaults::pyvers
|
||||
|
||||
if ($::os_package_type == 'debian') or ($::os['name'] == 'Fedora') or
|
||||
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
|
||||
$pyvers = '3'
|
||||
} else {
|
||||
$pyvers = ''
|
||||
}
|
||||
$client_package_name = "python${pyvers}-heatclient"
|
||||
$group = 'heat'
|
||||
|
||||
|
@ -38,11 +38,7 @@ describe 'heat::client' do
|
||||
let(:platform_params) do
|
||||
case facts[:osfamily]
|
||||
when 'Debian'
|
||||
if facts[:os_package_type] == 'debian'
|
||||
{ :client_package_name => 'python3-heatclient' }
|
||||
else
|
||||
{ :client_package_name => 'python-heatclient' }
|
||||
end
|
||||
{ :client_package_name => 'python3-heatclient' }
|
||||
when 'RedHat'
|
||||
{ :client_package_name => 'python-heatclient' }
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user