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