Inherit pyvers from openstacklib::defaults
Change-Id: I924ed9b5fd2dd1022c33f5352e4d948f73a0f2c1
This commit is contained in:
@@ -4,13 +4,7 @@
|
|||||||
#
|
#
|
||||||
class swift::params {
|
class swift::params {
|
||||||
include ::openstacklib::defaults
|
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 = "python${pyvers}-swiftclient"
|
$client_package = "python${pyvers}-swiftclient"
|
||||||
$service_provider = undef
|
$service_provider = undef
|
||||||
|
@@ -40,11 +40,7 @@ describe 'swift::client' do
|
|||||||
let(:platform_params) do
|
let(:platform_params) do
|
||||||
case facts[:osfamily]
|
case facts[:osfamily]
|
||||||
when 'Debian'
|
when 'Debian'
|
||||||
if facts[:os_package_type] == 'debian'
|
{ :client_package_name => 'python3-swiftclient' }
|
||||||
{ :client_package_name => 'python3-swiftclient' }
|
|
||||||
else
|
|
||||||
{ :client_package_name => 'python-swiftclient' }
|
|
||||||
end
|
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
{ :client_package_name => 'python-swiftclient' }
|
{ :client_package_name => 'python-swiftclient' }
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user