Get rid of the $pyvers variable

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

Change-Id: I51b3fb2c00faa2a5cbe54109594908a4dbb40e67
This commit is contained in:
Thomas Goirand 2021-06-09 16:16:45 +02:00
parent 0964a6bc24
commit bcfd47644f
2 changed files with 2 additions and 11 deletions

View File

@ -4,9 +4,8 @@
#
class mistral::params {
include openstacklib::defaults
$pyvers = $::openstacklib::defaults::pyvers
$client_package = "python${pyvers}-mistralclient"
$client_package = 'python3-mistralclient'
$db_sync_command = 'mistral-db-manage --config-file=/etc/mistral/mistral.conf upgrade head'
$db_populate_command = 'mistral-db-manage --config-file=/etc/mistral/mistral.conf populate'
$group = 'mistral'

View File

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