From 4454faafe688ef7ca4f3277785f694b84dc6298a Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 26 Sep 2024 11:19:08 +0200 Subject: [PATCH] use correct find_scenario method in rollback_pre_migrations Fixes: 5c59f9cdd2b7c21174a531fffe8bbdd863029928 --- lib/foreman_maintain/update_runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foreman_maintain/update_runner.rb b/lib/foreman_maintain/update_runner.rb index 3374b5e74..aaf83f0b0 100644 --- a/lib/foreman_maintain/update_runner.rb +++ b/lib/foreman_maintain/update_runner.rb @@ -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