diff --git a/spec/classes/octavia_client_spec.rb b/spec/classes/octavia_client_spec.rb index 571147b2..4f6c2217 100644 --- a/spec/classes/octavia_client_spec.rb +++ b/spec/classes/octavia_client_spec.rb @@ -42,7 +42,15 @@ describe 'octavia::client' do when 'Debian' { :client_package_name => 'python3-octaviaclient' } when 'RedHat' - { :client_package_name => 'python-octaviaclient' } + if facts[:operatingsystem] == 'Fedora' + { :client_package_name => 'python3-octaviaclient' } + else + if facts[:operatingsystemmajrelease] > '7' + { :client_package_name => 'python3-octaviaclient' } + else + { :client_package_name => 'python-octaviaclient' } + end + end end end