fix: collect rbac permissions error (#928)

This commit is contained in:
Craig O'Donnell
2022-12-24 09:13:38 +13:00
committed by GitHub
parent e2053a00a2
commit bc6528908f
-1
View File
@@ -172,7 +172,6 @@ func Collect(opts CollectOpts, p *troubleshootv1beta2.Preflight) (CollectResult,
allCollectors = append(allCollectors, collectors...)
}
foundForbidden = false
for _, collector := range collectors {
for _, e := range collector.GetRBACErrors() {
foundForbidden = true