fix index response, fix linter issues

This commit is contained in:
2026-06-25 14:19:43 +02:00
parent d60983411e
commit 8f2c68b5b6
2 changed files with 5 additions and 6 deletions

View File

@@ -101,11 +101,10 @@ func IlmForecastList(conf *cfg.Config) error {
table.AddRow(
phase.index,
humanize.Bytes(uint64(phase.size)),
fmt.Sprintf("%s", phase.age),
phase.age.String(),
virtualAge.String(),
fmt.Sprintf("%s", virtualAge),
fmt.Sprintf("%s", phase.minage),
phase.minage.String(),
humanize.Bytes(uint64(phase.minsize)),
phase.currentPhase,
@@ -189,7 +188,7 @@ func getIlmPhaseData(conf *cfg.Config) ([]PhaseData, error) {
case ResponseExplain:
ilmdetails = r.explainlifecycle
case ResponseIndices:
indicesres = r.indices
indicesres = r.indicesbytes
case ResponseLifecycle:
ilmpolicies = *r.lifecycle
}