Skip to content

Commit

Permalink
use .String with forgotten section
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Apr 3, 2024
1 parent 8f04d04 commit dd1ec56
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cli/internal/cmd/upgradecheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,14 +363,9 @@ func (v *versionCollector) newMeasurements(ctx context.Context, csp cloudprovide
continue
}
upgrades[shortPath] = measurements
v.log.Debug("Compatible image measurement found", shortPath, measurements.String())
}
compatibleMeasurements := ""
for path, measurements := range upgrades {
compatibleMeasurement := measurements.String()
compatibleMeasurements += fmt.Sprintf("\t%q:\n%s", path, compatibleMeasurement)
}
v.log.Debug(fmt.Sprintf("Compatible image measurements are:\n%s", compatibleMeasurements))


return upgrades, nil
}

Expand Down

0 comments on commit dd1ec56

Please sign in to comment.