Skip to content

Commit

Permalink
Fixes #36230: Puppet removal parameter to installer is no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Mar 28, 2023
1 parent 8adcfed commit 8ee29a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions definitions/procedures/puppet/remove_puppet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class RemovePuppet < ForemanMaintain::Procedure
description 'Remove Puppet feature'
confine do
feature(:puppet_server) &&
(check_min_version('foreman', '3.0') || check_min_version('foreman-proxy', '3.0'))
(check_min_version('foreman', '3.6') || check_min_version('foreman-proxy', '3.6'))
end
advanced_run false
end
Expand Down Expand Up @@ -42,7 +42,6 @@ def installer_arguments_disabling_puppet
options << '--foreman-proxy-puppet false'
options << '--foreman-proxy-puppetca false'
end
options << '--foreman-proxy-content-puppet false' if answers.key?('foreman_proxy_content')
options
end

Expand Down
2 changes: 0 additions & 2 deletions test/definitions/procedures/puppet/remove_puppet_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
'--no-enable-foreman-plugin-puppet',
'--foreman-proxy-puppet false',
'--foreman-proxy-puppetca false',
'--foreman-proxy-content-puppet false',
'--no-enable-puppet'
]
_(subject.send(:installer_arguments_disabling_puppet).sort).must_equal expected_arguments.sort
Expand All @@ -52,7 +51,6 @@
expected_arguments = [
'--foreman-proxy-puppet false',
'--foreman-proxy-puppetca false',
'--foreman-proxy-content-puppet false',
'--no-enable-puppet'
]
_(subject.send(:installer_arguments_disabling_puppet).sort).must_equal expected_arguments.sort
Expand Down

0 comments on commit 8ee29a4

Please sign in to comment.