From 302f8743e9090a2a777bcd44c818783b04dfde39 Mon Sep 17 00:00:00 2001 From: Evans Mungai Date: Fri, 13 Sep 2024 12:20:29 +0100 Subject: [PATCH] Update log messages and uncomment BundlePath variable Signed-off-by: Evans Mungai --- pkg/preflight/execute.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/preflight/execute.go b/pkg/preflight/execute.go index 844c48b4b0..aea74094b4 100644 --- a/pkg/preflight/execute.go +++ b/pkg/preflight/execute.go @@ -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") @@ -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) { @@ -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) } } @@ -223,4 +223,4 @@ func saveTSVersionToBundle(results collect.CollectorResult, bundlePath string) e } return nil -} \ No newline at end of file +}