Skip to content

Commit 302f874

Browse files
committed
Update log messages and uncomment BundlePath variable
Signed-off-by: Evans Mungai <[email protected]>
1 parent 3d0e8da commit 302f874

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/preflight/execute.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func Execute(preflightSpec *troubleshootv1beta2.Preflight, ignorePermissionError
121121
IgnorePermissionErrors: ignorePermissionErrors,
122122
ProgressChan: progressChan,
123123
KubernetesRestConfig: restConfig,
124-
// BundlePath: bundlePath
124+
BundlePath: bundlePath,
125125
}
126126

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

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

@@ -223,4 +223,4 @@ func saveTSVersionToBundle(results collect.CollectorResult, bundlePath string) e
223223
}
224224

225225
return nil
226-
}
226+
}

0 commit comments

Comments
 (0)