in fast-build-update-tool/internal/runner/fleet_update_report_writer.go [40:53]
func (f *FleetUpdateReportWriter) ReportResults(results *FleetUpdateResults) {
if f.verbose {
return
}
if len(results.InstancesFailedUpdate) == 0 {
pterm.Success.Printf("Fleet Update Succeeded! Updated %d instance(s)\n", results.InstancesUpdated)
} else {
pterm.Error.Printf("Fleet Update Failed. Failed to update %d instance(s)\n", len(results.InstancesFailedUpdate))
pterm.Error.Printf("Instance(s) failed: %s\n", strings.Join(results.InstancesFailedUpdate, ", "))
pterm.Printf("Instance(s) Successfully Updated: %d\n", results.InstancesUpdated)
pterm.Printf("Total Instance(s) Found: %d\n", results.InstancesFound)
}
}