Do not warn of a missing firewall during the node add that writes it

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-04 11:58:18 +02:00
1 parent 855a34f0f7
commit fed8c75c6c
1 file changed
+4
+4
View File
@@ -457,6 +457,10 @@ func (r *Runner) check(ctx context.Context, res *Result) error {
}
return fmt.Errorf("llmgw doctor did not run on the node: %v: %s", err, lastLine(out))
}
if !r.Opts.NoFirewall && len(r.Opts.FirewallPorts) > 0 {
// A missing firewall is what this run is about to write.
rep.Findings = slices.DeleteFunc(rep.Findings, func(f doctor.Finding) bool { return f.Area == "firewall" })
}
res.Facts, res.Findings = rep.Facts, rep.Findings
fails := 0