From 3b957ae5c01ba4130f2937f0af4ed270a2234c9d Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 21 Aug 2024 11:16:59 +0200 Subject: [PATCH] use correct phase to check if an upgrade scenario is available Fixes: c5890ab9445fa5f99dce2f511839638d3e9b6775 --- lib/foreman_maintain/upgrade_runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foreman_maintain/upgrade_runner.rb b/lib/foreman_maintain/upgrade_runner.rb index ff047e561..66536fe91 100644 --- a/lib/foreman_maintain/upgrade_runner.rb +++ b/lib/foreman_maintain/upgrade_runner.rb @@ -44,7 +44,7 @@ def initialize(reporter, options = {}) end def available? - condition = { :tags => [:upgrade_scenario, :pre_upgrade_check] } + condition = { :tags => [:upgrade_scenario, :pre_upgrade_checks] } matching_scenarios = find_scenarios(condition) !matching_scenarios.empty? end