Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the $pyvers variable. Change-Id: Iebaeb757d2b989f8307a47f57d7aff6071527836
This commit is contained in:
parent
b07c761623
commit
4d2d6bfe8e
@ -4,9 +4,8 @@
|
|||||||
#
|
#
|
||||||
class trove::params {
|
class trove::params {
|
||||||
include openstacklib::defaults
|
include openstacklib::defaults
|
||||||
$pyvers = $::openstacklib::defaults::pyvers
|
|
||||||
|
|
||||||
$client_package_name = "python${pyvers}-troveclient"
|
$client_package_name = 'python3-troveclient'
|
||||||
$group = 'trove'
|
$group = 'trove'
|
||||||
|
|
||||||
case $::osfamily {
|
case $::osfamily {
|
||||||
|
@ -59,15 +59,7 @@ describe 'trove::client' do
|
|||||||
when 'Debian'
|
when 'Debian'
|
||||||
{ :client_package_name => 'python3-troveclient' }
|
{ :client_package_name => 'python3-troveclient' }
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
if facts[:operatingsystem] == 'Fedora'
|
|
||||||
{ :client_package_name => 'python3-troveclient' }
|
{ :client_package_name => 'python3-troveclient' }
|
||||||
else
|
|
||||||
if facts[:operatingsystemmajrelease] > '7'
|
|
||||||
{ :client_package_name => 'python3-troveclient' }
|
|
||||||
else
|
|
||||||
{ :client_package_name => 'python-troveclient' }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user