Skip to content

Commit

Permalink
remove specialcasing for old, no longer supported ubuntu versions (<=16)
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Feb 20, 2024
1 parent 713e869 commit a063e44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
12 changes: 2 additions & 10 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,8 @@
default_provider = 'pcs'
pcs_version = '0.10.0'
when 'Ubuntu'
if fact_on(host, 'os.release.major').to_i > 18
default_provider = 'pcs'
pcs_version = '0.10.0'
elsif fact_on(host, 'os.release.major').to_i > 16
default_provider = 'pcs'
pcs_version = '0.9.0'
else
default_provider = 'crm'
pcs_version = ''
end
default_provider = 'pcs'
pcs_version = '0.10.0'
end
when 'Suse'
default_provider = 'crm'
Expand Down
12 changes: 2 additions & 10 deletions spec/spec_helper_corosync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,8 @@ def corosync_stack(facts)
corosync_stack = 'pcs'
pcs_version = '0.10.0'
when 'Ubuntu'
if facts[:os]['release']['major'].to_i > 18
corosync_stack = 'pcs'
pcs_version = '0.10.0'
elsif facts[:os]['release']['major'].to_i > 16
corosync_stack = 'pcs'
pcs_version = '0.9.0'
else
corosync_stack = 'crm'
pcs_version = ''
end
corosync_stack = 'pcs'
pcs_version = '0.10.0'
end
when 'Suse'
corosync_stack = 'crm'
Expand Down

0 comments on commit a063e44

Please sign in to comment.