Skip to content

Commit

Permalink
fix rubocop offense
Browse files Browse the repository at this point in the history
  • Loading branch information
fraenki committed Aug 6, 2024
1 parent 975e188 commit 5f479a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/classes/galera_debian_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@

case facts[:osfamily]
when 'Debian'
if facts[:os]['name'] == 'Debian' and Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '12') >= 0
if facts[:os]['name'] == 'Debian' && Puppet::Util::Package.versioncmp(facts[:os]['release']['major'], '12') >= 0
it_configures 'galera on Debian'
elsif facts[:os]['name'] == 'Ubuntu' and Puppet::Util::Package.versioncmp(facts[:os]['release']['full'], '24.04') >= 0
elsif facts[:os]['name'] == 'Ubuntu' && Puppet::Util::Package.versioncmp(facts[:os]['release']['full'], '24.04') >= 0
it_configures 'galera on Debian'
else
it_configures 'galera on Debian 11 and older'
Expand Down

0 comments on commit 5f479a1

Please sign in to comment.