Inherit pyvers from openstacklib::defaults
Depends-On: https://review.openstack.org/#/c/633162/ Change-Id: Ied4fcd08ce82543907c4cf8fd5f2780e63a47eed
This commit is contained in:
parent
5837b0f773
commit
63cd960253
@ -5,11 +5,8 @@
|
||||
#
|
||||
class openstacklib::params {
|
||||
|
||||
if ($::os_package_type == 'debian') or ($::os['name'] == 'Fedora') or
|
||||
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
|
||||
$pyvers = '3'
|
||||
} else {
|
||||
$pyvers = ''
|
||||
}
|
||||
include ::openstacklib::defaults
|
||||
$pyvers = $::openstacklib::defaults::pyvers
|
||||
|
||||
$openstackclient_package_name = "python${pyvers}-openstackclient"
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ describe 'openstacklib::openstackclient' do
|
||||
end
|
||||
|
||||
let(:platform_params) do
|
||||
if facts[:os_package_type] == 'debian' or (facts[:os_package_type] == 'rpm' \
|
||||
if facts[:osfamily] == 'Debian' or (facts[:os_package_type] == 'rpm' \
|
||||
and facts[:operatingsystemrelease].to_i > 7) then
|
||||
openstackclient_package_name = 'python3-openstackclient'
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user