Skip to content

Commit

Permalink
Fixes #33346 - limit switchover run below Katello 4.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
upadhyeammit committed Aug 25, 2021
1 parent ab0e226 commit e6a25d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions definitions/procedures/content/switchover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ class Switchover < ForemanMaintain::Procedure
for_feature :pulpcore

confine do
# FIXME: remove this condition for the 6.10 upgrade scenario
!feature(:instance).downstream
!check_min_version(foreman_plugin_name('katello'), '4.0')
end

param :skip_deb, 'Do not run debian options in installer.'
Expand Down
7 changes: 2 additions & 5 deletions definitions/scenarios/content.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@ class Switchover < ContentBase
end

def compose
# FIXME: remove this condition for the 6.10 upgrade scenario
if Procedures::Content::Switchover.present?
add_step(Procedures::Content::Switchover)
add_step(Procedures::Foreman::ApipieCache)
end
add_step_with_context(Procedures::Content::Switchover)
add_step(Procedures::Foreman::ApipieCache)
end
end

Expand Down

0 comments on commit e6a25d1

Please sign in to comment.