Browse Source

Merge "Make sure to distinguish Fedora and RHEL/CentOS"

tags/16.2.0
Zuul 3 months ago
committed by Gerrit Code Review
parent
commit
4a8693cdeb
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      spec/classes/nova_client_spec.rb

+ 6
- 2
spec/classes/nova_client_spec.rb View File

@@ -29,10 +29,14 @@ describe 'nova::client' do
when 'Debian'
{ :client_package_name => 'python3-novaclient' }
when 'RedHat'
if facts[:operatingsystemmajrelease] > '7'
if facts[:operatingsystem] == 'Fedora'
{ :client_package_name => 'python3-novaclient' }
else
{ :client_package_name => 'python-novaclient' }
if facts[:operatingsystemmajrelease] > '7'
{ :client_package_name => 'python3-novaclient' }
else
{ :client_package_name => 'python-novaclient' }
end
end
end
end


Loading…
Cancel
Save