Browse Source

Make sure to distinguish Fedora and RHEL/CentOS

... because Fedora has its versioning different from RHEL/CentOS.

Change-Id: I67d81b0c994b255a376c05db353019cc7355a630
changes/73/716173/2
Takashi Kajinami 2 years ago
parent
commit
d0c2da685f
  1. 8
      spec/classes/aodh_client_spec.rb

8
spec/classes/aodh_client_spec.rb

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

Loading…
Cancel
Save