Skip to content

Commit

Permalink
Update log messages and uncomment BundlePath variable
Browse files Browse the repository at this point in the history
Signed-off-by: Evans Mungai <evans@replicated.com>
  • Loading branch information
banjoh committed Sep 13, 2024
1 parent 3d0e8da commit 302f874
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/preflight/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func Execute(preflightSpec *troubleshootv1beta2.Preflight, ignorePermissionError
IgnorePermissionErrors: ignorePermissionErrors,
ProgressChan: progressChan,
KubernetesRestConfig: restConfig,
// BundlePath: bundlePath
BundlePath: bundlePath,
}

logger.Info("preflight collect phase")
Expand All @@ -140,7 +140,7 @@ func Execute(preflightSpec *troubleshootv1beta2.Preflight, ignorePermissionError
collectorResults := collect.CollectorResult(clusterCollectResult.AllCollectedData)
err = saveTSVersionToBundle(collectorResults, bundlePath)
if err != nil {
logger.Warnf("Ignore storing preflight version file: %v", err)
logger.Warnf("Ignore storing troubleshoot version file to preflight bundle: %v", err)
}

if isPermissionsError(err) {
Expand Down Expand Up @@ -179,7 +179,7 @@ func Execute(preflightSpec *troubleshootv1beta2.Preflight, ignorePermissionError
uploadPreflightResults.Results = results
err = saveAnalysisResultsToBundle(collectorResults, analyzeResults, bundlePath)
if err != nil {
logger.Warnf("Ignore storing preflight analysis file: %v", err)
logger.Warnf("Ignore storing preflight analysis file to preflight bundle: %v", err)
}
}

Expand Down Expand Up @@ -223,4 +223,4 @@ func saveTSVersionToBundle(results collect.CollectorResult, bundlePath string) e
}

return nil
}
}

0 comments on commit 302f874

Please sign in to comment.