Inherit pyvers from openstacklib::defaults

Change-Id: I7793670ff6cbe20e69b2b3bcc1f3ece910cbf989
This commit is contained in:
Tobias Urdin 2019-01-17 21:41:41 +01:00
parent add60ec439
commit da53614191
2 changed files with 2 additions and 12 deletions

View File

@ -5,13 +5,7 @@
class manila::params {
include ::openstacklib::defaults
if ($::os_package_type == 'debian') or ($::os['name'] == 'Fedora') or
($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7) {
$pyvers = '3'
} else {
$pyvers = ''
}
$pyvers = $::openstacklib::defaults::pyvers
$client_package = "python${pyvers}-manilaclient"
$db_sync_command = 'manila-manage db sync'

View File

@ -27,11 +27,7 @@ describe 'manila::client' do
let :platform_params do
case facts[:osfamily]
when 'Debian'
if facts[:os_package_type] == 'debian'
{ :client_package => 'python3-manilaclient' }
else
{ :client_package => 'python-manilaclient' }
end
{ :client_package => 'python3-manilaclient' }
when 'RedHat'
{ :client_package => 'python-manilaclient' }
end