Merge pull request #362 from replicatedhq/preflight-error-and-result

Include result if not nil regardless of error
This commit is contained in:
emosbaugh
2021-04-28 20:41:26 -07:00
committed by GitHub
-2
View File
@@ -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