Browse Source

Get rid of the $pyvers variable

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

Change-Id: I0dd38974a07d76b003688c57258aaa37a8b6ed32
changes/41/796241/1
Thomas Goirand 2 months ago
parent
commit
ae0a25f1ed
  1. 3
      manifests/params.pp
  2. 10
      spec/classes/tacker_client_spec.rb

3
manifests/params.pp

@ -2,10 +2,9 @@
#
class tacker::params {
include openstacklib::defaults
$pyvers = $::openstacklib::defaults::pyvers
$group = 'tacker'
$client_package_name = "python${pyvers}-tackerclient"
$client_package_name = 'python3-tackerclient'
case $::osfamily {
'RedHat': {

10
spec/classes/tacker_client_spec.rb

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

Loading…
Cancel
Save