Skip to content

Commit f1ca1a5

Browse files
authored
Merge pull request #362 from replicatedhq/preflight-error-and-result
Include result if not nil regardless of error
2 parents eef9ebe + 9357d5a commit f1ca1a5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/preflight/collect.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ func CollectHost(opts CollectOpts, p *troubleshootv1beta2.HostPreflight) (Collec
8383
result, err := collector.Collect(opts.ProgressChan)
8484
if err != nil {
8585
opts.ProgressChan <- errors.Errorf("failed to run collector: %s: %v", collector.Title(), err)
86-
continue
8786
}
88-
8987
if result != nil {
9088
for k, v := range result {
9189
allCollectedData[k] = v

0 commit comments

Comments
 (0)