Skip to content

Commit

Permalink
remove old switches for ubuntu 18 and lower
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Apr 8, 2024
1 parent 560483d commit 4d225f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
14 changes: 2 additions & 12 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down
14 changes: 2 additions & 12 deletions spec/spec_helper_corosync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 4d225f3

Please sign in to comment.