fix fmt (#14062)
This commit is contained in:
parent
88e02feab0
commit
dd0a2c15a3
|
@ -2,10 +2,11 @@ package command
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/mitchellh/cli"
|
||||
"github.com/posener/complete"
|
||||
"github.com/ryanuber/columnize"
|
||||
"strings"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -4278,7 +4278,6 @@ func (b *SystemBackend) handleVersionHistoryList(ctx context.Context, req *logic
|
|||
}
|
||||
|
||||
return logical.ListResponseWithInfo(respKeys, respKeyInfo), nil
|
||||
|
||||
}
|
||||
|
||||
func sanitizePath(path string) string {
|
||||
|
|
|
@ -114,7 +114,6 @@ func (c *Core) loadVersionTimestamps(ctx context.Context) error {
|
|||
if timestampInstalled.Location() != time.UTC {
|
||||
timestampInstalled = timestampInstalled.UTC()
|
||||
isUpdated, err := c.storeVersionTimestamp(ctx, vaultVersion.Version, timestampInstalled, true)
|
||||
|
||||
if err != nil {
|
||||
c.logger.Warn("failed to rewrite vault version timestamp as UTC", "error", err)
|
||||
}
|
||||
|
|
|
@ -33,7 +33,10 @@ func TestVersionStore_GetOldestVersion(t *testing.T) {
|
|||
upgradeTimePlusEpsilon := time.Now().UTC()
|
||||
|
||||
// 1.6.2 is stored before 1.6.1, so even though it is a higher number, it should be returned.
|
||||
versionEntries := []struct{version string; ts time.Time}{
|
||||
versionEntries := []struct {
|
||||
version string
|
||||
ts time.Time
|
||||
}{
|
||||
{"1.6.2", upgradeTimePlusEpsilon.Add(-4 * time.Hour)},
|
||||
{"1.6.1", upgradeTimePlusEpsilon.Add(2 * time.Hour)},
|
||||
}
|
||||
|
@ -74,7 +77,10 @@ func TestVersionStore_SelfHealUTC(t *testing.T) {
|
|||
|
||||
nowEST := time.Now().In(estLoc)
|
||||
|
||||
versionEntries := []struct{version string; ts time.Time}{
|
||||
versionEntries := []struct {
|
||||
version string
|
||||
ts time.Time
|
||||
}{
|
||||
{"1.9.0", nowEST.Add(24 * time.Hour)},
|
||||
{"1.9.1", nowEST.Add(48 * time.Hour)},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue