Debian is using python3-mistralclient
Change-Id: I1d90d7975d3b380bf1c4c4d4f11f40d4a1d30285 Closes-Bug: #1792608
This commit is contained in:
parent
d7ac372e69
commit
4912a1783d
|
@ -5,7 +5,13 @@
|
|||
class mistral::params {
|
||||
include ::openstacklib::defaults
|
||||
|
||||
$client_package = 'python-mistralclient'
|
||||
if ($::os_package_type == 'debian') {
|
||||
$pyvers = '3'
|
||||
} else {
|
||||
$pyvers = ''
|
||||
}
|
||||
|
||||
$client_package = "python-${pyvers}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'
|
||||
|
|
|
@ -24,8 +24,17 @@ describe 'mistral::client' do
|
|||
facts.merge!(OSDefaults.get_facts())
|
||||
end
|
||||
|
||||
let :platform_params do
|
||||
{ :client_package => 'python-mistralclient' }
|
||||
let(:platform_params) do
|
||||
case facts[:osfamily]
|
||||
when 'Debian'
|
||||
if facts[:os_package_type] == 'debian'
|
||||
{ :client_package => 'python3-mistralclient' }
|
||||
else
|
||||
{ :client_package => 'python-mistralclient' }
|
||||
end
|
||||
when 'RedHat'
|
||||
{ :client_package => 'python-mistralclient' }
|
||||
end
|
||||
end
|
||||
|
||||
it_behaves_like 'mistral client'
|
||||
|
|
Loading…
Reference in New Issue