Get rid of the $pyvers variable

Since everyone has switched to Python3, it's time for the removal of the
$pyvers variable.

Change-Id: I35b86a599d9e947648cad38904d54a8f998696e1
This commit is contained in:
Thomas Goirand 2021-06-14 09:44:42 +02:00
parent 3e4d8d14c5
commit 0cfbe2484c
2 changed files with 2 additions and 11 deletions

View File

@ -5,10 +5,9 @@
class zaqar::params {
include openstacklib::defaults
$pyvers = $::openstacklib::defaults::pyvers
$pyver3 = $::openstacklib::defaults::pyver3
$client_package_name = "python${pyvers}-zaqarclient"
$client_package_name = 'python3-zaqarclient'
$group = 'zaqar'
case $::osfamily {

View File

@ -31,15 +31,7 @@ describe 'zaqar::client' do
when 'Debian'
{ :client_package_name => 'python3-zaqarclient' }
when 'RedHat'
if facts[:operatingsystem] == 'Fedora'
{ :client_package_name => 'python3-zaqarclient' }
else
if facts[:operatingsystemmajrelease] > '7'
{ :client_package_name => 'python3-zaqarclient' }
else
{ :client_package_name => 'python-zaqarclient' }
end
end
{ :client_package_name => 'python3-zaqarclient' }
end
end