diff --git a/lib/foreman_maintain/update_runner.rb b/lib/foreman_maintain/update_runner.rb index 477ab84be..59de164dc 100644 --- a/lib/foreman_maintain/update_runner.rb +++ b/lib/foreman_maintain/update_runner.rb @@ -109,7 +109,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