Get rid of the $pyvers variable
Since everyone has switched to Python3, it's time for the removal of the $pyvers variable. Change-Id: Ic09a5a9b7edbdcea3ce1c4044df8a6819f076ff5
This commit is contained in:
parent
39e76ce636
commit
e04facd640
@ -3,10 +3,9 @@
|
||||
class watcher::params {
|
||||
include openstacklib::defaults
|
||||
|
||||
$pyvers = $::openstacklib::defaults::pyvers
|
||||
$pyver3 = $::openstacklib::defaults::pyver3
|
||||
|
||||
$client_package_name = "python${pyvers}-watcherclient"
|
||||
$client_package_name = 'python3-watcherclient'
|
||||
$group = 'watcher'
|
||||
|
||||
case $::osfamily {
|
||||
|
@ -29,15 +29,7 @@ describe 'watcher::client' do
|
||||
when 'Debian'
|
||||
{ :client_package_name => 'python3-watcherclient' }
|
||||
when 'RedHat'
|
||||
if facts[:operatingsystem] == 'Fedora'
|
||||
{ :client_package_name => 'python3-watcherclient' }
|
||||
else
|
||||
if facts[:operatingsystemmajrelease] > '7'
|
||||
{ :client_package_name => 'python3-watcherclient' }
|
||||
else
|
||||
{ :client_package_name => 'python-watcherclient' }
|
||||
end
|
||||
end
|
||||
{ :client_package_name => 'python3-watcherclient' }
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user