From 9357d5ac96e7913fdd56b9b2ddb7a852536c0d18 Mon Sep 17 00:00:00 2001 From: Ethan Mosbaugh Date: Wed, 28 Apr 2021 02:58:50 +0000 Subject: [PATCH] Include result if not nil regardless of error --- pkg/preflight/collect.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/preflight/collect.go b/pkg/preflight/collect.go index 416aa78e..315f55e4 100644 --- a/pkg/preflight/collect.go +++ b/pkg/preflight/collect.go @@ -83,9 +83,7 @@ func CollectHost(opts CollectOpts, p *troubleshootv1beta2.HostPreflight) (Collec result, err := collector.Collect(opts.ProgressChan) if err != nil { opts.ProgressChan <- errors.Errorf("failed to run collector: %s: %v", collector.Title(), err) - continue } - if result != nil { for k, v := range result { allCollectedData[k] = v