Skip to content

Commit

Permalink
use correct find_scenario method in rollback_pre_migrations
Browse files Browse the repository at this point in the history
Fixes: 5c59f9c
  • Loading branch information
evgeni committed Sep 26, 2024
1 parent 330b2fb commit 4454faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/foreman_maintain/update_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def skip_phase(skipped_phase)
def rollback_pre_migrations
raise "Unexpected phase #{phase}, expecting pre_migrations" unless phase == :pre_migrations

rollback_needed = scenario(:pre_migrations).steps.any? { |s| s.executed? && s.success? }
rollback_needed = find_scenario(:pre_migrations).steps.any? { |s| s.executed? && s.success? }
if rollback_needed
@quit = false
# prevent the unnecessary confirmation questions
Expand Down

0 comments on commit 4454faa

Please sign in to comment.