From fddeafbcf83ab560c5631d3747d2fe0af45ac75b Mon Sep 17 00:00:00 2001 From: markuszilch Date: Tue, 20 Feb 2024 14:05:13 +0100 Subject: [PATCH] use fact_on method --- spec/spec_helper_acceptance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 375767a0..35ff9d8a 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -18,7 +18,7 @@ pcs_version = '0.10.0' when 'Ubuntu' default_provider = 'pcs' - pcs_version = if facts[:os]['release']['major'].to_i > 18 + pcs_version = if fact_on(host,'os.release.major').to_i > 18 '0.10.0' else '0.9.0'