From 1f5ec28398460f7fec9cae2074de55cf7a283e74 Mon Sep 17 00:00:00 2001 From: Adam Chalkley Date: Tue, 2 Feb 2021 03:41:09 -0600 Subject: [PATCH] Fix snapshots age misordered eval counts Previous "OK: No snapshots older than X" message had an incorrect "evaluated" listing due to misordered substitution list. This commit sorts that issue. --- internal/vsphere/snapshots.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/vsphere/snapshots.go b/internal/vsphere/snapshots.go index 776e68b3..70eb9593 100644 --- a/internal/vsphere/snapshots.go +++ b/internal/vsphere/snapshots.go @@ -857,8 +857,8 @@ func SnapshotsAgeOneLineCheckSummary( "%s: No snapshots older than %d days detected (evaluated %d VMs, %d Snapshots, %d Resource Pools)", stateLabel, snapshotsAgeWarning, - snapshotSets.Snapshots(), len(evaluatedVMs), + snapshotSets.Snapshots(), len(rps), )