mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-09-03 00:47:17 +00:00
Merge pull request #362 from replicatedhq/preflight-error-and-result
Include result if not nil regardless of error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user