diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 0ee5e434..00177b0d 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -12,18 +12,8 @@ '0.9.0' end when 'Debian' - case fact_on(host, 'os.name') - when 'Debian' - default_provider = 'pcs' - pcs_version = '0.10.0' - when 'Ubuntu' - default_provider = 'pcs' - pcs_version = if fact_on(host, 'os.release.major').to_i > 18 - '0.10.0' - else - '0.9.0' - end - end + default_provider = 'pcs' + pcs_version = '0.10.0' when 'Suse' default_provider = 'crm' pcs_version = '' diff --git a/spec/spec_helper_corosync.rb b/spec/spec_helper_corosync.rb index a726ae86..566402af 100644 --- a/spec/spec_helper_corosync.rb +++ b/spec/spec_helper_corosync.rb @@ -12,18 +12,8 @@ def corosync_stack(facts) '0.9.0' end when 'Debian' - case facts[:os]['name'] - when 'Debian' - corosync_stack = 'pcs' - pcs_version = '0.10.0' - when 'Ubuntu' - corosync_stack = 'pcs' - pcs_version = if facts[:os]['release']['major'].to_i > 18 - '0.10.0' - else - '0.9.0' - end - end + corosync_stack = 'pcs' + pcs_version = '0.10.0' when 'Suse' corosync_stack = 'crm' pcs_version = ''