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:
parent
3e4d8d14c5
commit
0cfbe2484c
@ -5,10 +5,9 @@
|
|||||||
class zaqar::params {
|
class zaqar::params {
|
||||||
include openstacklib::defaults
|
include openstacklib::defaults
|
||||||
|
|
||||||
$pyvers = $::openstacklib::defaults::pyvers
|
|
||||||
$pyver3 = $::openstacklib::defaults::pyver3
|
$pyver3 = $::openstacklib::defaults::pyver3
|
||||||
|
|
||||||
$client_package_name = "python${pyvers}-zaqarclient"
|
$client_package_name = 'python3-zaqarclient'
|
||||||
$group = 'zaqar'
|
$group = 'zaqar'
|
||||||
|
|
||||||
case $::osfamily {
|
case $::osfamily {
|
||||||
|
@ -31,15 +31,7 @@ describe 'zaqar::client' do
|
|||||||
when 'Debian'
|
when 'Debian'
|
||||||
{ :client_package_name => 'python3-zaqarclient' }
|
{ :client_package_name => 'python3-zaqarclient' }
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
if facts[:operatingsystem] == 'Fedora'
|
|
||||||
{ :client_package_name => 'python3-zaqarclient' }
|
{ :client_package_name => 'python3-zaqarclient' }
|
||||||
else
|
|
||||||
if facts[:operatingsystemmajrelease] > '7'
|
|
||||||
{ :client_package_name => 'python3-zaqarclient' }
|
|
||||||
else
|
|
||||||
{ :client_package_name => 'python-zaqarclient' }
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user