Inherit pyvers from openstacklib::defaults
Change-Id: I77a1eef4c2c9403c4cf37417030d8bc24281bc02
This commit is contained in:
parent
4140826105
commit
f9afc8fa1e
@ -2,13 +2,7 @@
|
||||
#
|
||||
class panko::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_name = "python${pyvers}-pankoclient"
|
||||
$group = 'panko'
|
||||
|
@ -27,11 +27,7 @@ describe 'panko::client' do
|
||||
let(:platform_params) do
|
||||
case facts[:osfamily]
|
||||
when 'Debian'
|
||||
if facts[:os_package_type] == 'debian'
|
||||
{ :client_package_name => 'python3-pankoclient' }
|
||||
else
|
||||
{ :client_package_name => 'python-pankoclient' }
|
||||
end
|
||||
{ :client_package_name => 'python3-pankoclient' }
|
||||
when 'RedHat'
|
||||
{ :client_package_name => 'python-pankoclient' }
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user