From 189dd44ec7fb7f63a18af2c3193f0ad49aedfea2 Mon Sep 17 00:00:00 2001 From: markuszilch Date: Tue, 20 Feb 2024 14:00:33 +0100 Subject: [PATCH] revert to previous greater than syntax --- spec/spec_helper_acceptance.rb | 6 +++--- spec/spec_helper_corosync.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 74972a4f..375767a0 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -18,10 +18,10 @@ pcs_version = '0.10.0' when 'Ubuntu' default_provider = 'pcs' - pcs_version = if facts[:os]['release']['major'].to_i == 18 - '0.9.0' - else + pcs_version = if facts[:os]['release']['major'].to_i > 18 '0.10.0' + else + '0.9.0' end end when 'Suse' diff --git a/spec/spec_helper_corosync.rb b/spec/spec_helper_corosync.rb index 4aaa77e2..a726ae86 100644 --- a/spec/spec_helper_corosync.rb +++ b/spec/spec_helper_corosync.rb @@ -18,10 +18,10 @@ def corosync_stack(facts) pcs_version = '0.10.0' when 'Ubuntu' corosync_stack = 'pcs' - pcs_version = if facts[:os]['release']['major'].to_i == 18 - '0.9.0' - else + pcs_version = if facts[:os]['release']['major'].to_i > 18 '0.10.0' + else + '0.9.0' end end when 'Suse'