Merge "Debian is using python3-glareclient"
This commit is contained in:
commit
67a0ee0f19
@ -3,8 +3,14 @@
|
||||
class glare::params {
|
||||
include ::openstacklib::defaults
|
||||
|
||||
if ($::os_package_type == 'debian') {
|
||||
$pyvers = '3'
|
||||
} else {
|
||||
$pyvers = ''
|
||||
}
|
||||
|
||||
$group = 'glare'
|
||||
$client_package_name = 'python-glareclient'
|
||||
$client_package_name = "python${pyvers}-glareclient"
|
||||
|
||||
case $::osfamily {
|
||||
'RedHat': {
|
||||
|
@ -24,8 +24,17 @@ describe 'glare::client' do
|
||||
facts.merge!(OSDefaults.get_facts())
|
||||
end
|
||||
|
||||
let :platform_params do
|
||||
{ :client_package_name => 'python-glareclient' }
|
||||
let(:platform_params) do
|
||||
case facts[:osfamily]
|
||||
when 'Debian'
|
||||
if facts[:os_package_type] == 'debian'
|
||||
{ :client_package_name => 'python3-glareclient' }
|
||||
else
|
||||
{ :client_package_name => 'python-glareclient' }
|
||||
end
|
||||
when 'RedHat'
|
||||
{ :client_package_name => 'python-glareclient' }
|
||||
end
|
||||
end
|
||||
|
||||
it_behaves_like 'glare client'
|
||||
|
Loading…
Reference in New Issue
Block a user