From a0d390c41fe52ccbd5b592bccf25a97c0d1aa69e Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 22 Jul 2025 14:43:14 +0200 Subject: [PATCH] mark steps that were filtered due to confine as skipped this is especially interesting when running checks, as sometimes a check is not applicable to a system (and thus confined) but we'd still report the result as "OK" which can confuse the user --- lib/foreman_maintain/executable.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/foreman_maintain/executable.rb b/lib/foreman_maintain/executable.rb index 221be18b8..e36ef465e 100644 --- a/lib/foreman_maintain/executable.rb +++ b/lib/foreman_maintain/executable.rb @@ -139,7 +139,11 @@ def __run__(execution) setup_execution_state(execution) unless skipped? if defined?(self.class.present?) - run if self.class.present? + if self.class.present? + run + else + skip + end else run end