Skip to content

Commit

Permalink
Better place for the sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
komapa committed Jul 5, 2023
1 parent b5a36b0 commit e0194a4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions command/vault/audit_push.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ package vault

import (
"fmt"
"time"

"github.com/hashicorp/vault/api"
"github.com/seatgeek/hashi-helper/config"
log "github.com/sirupsen/logrus"
cli "gopkg.in/urfave/cli.v1"
"time"
)

// AuditPush ...
Expand Down Expand Up @@ -53,12 +52,12 @@ func AuditPushWithConfig(c *cli.Context, config *config.Config) error {
log.Fatal(err)
}

// Give Vault a little bit of time to complete the DELETE operation above
time.Sleep(1 * time.Second)

printRemoteSecretWarnings(s)
}

// Give Vault a little bit of time to complete the DELETE operation above
time.Sleep(1 * time.Second)

s, err := client.Logical().Write(path, audit.ToMap())
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit e0194a4

Please sign in to comment.