Skip to content

Commit

Permalink
Give Vault a little bit of time to complete the DELETE operation
Browse files Browse the repository at this point in the history
  • Loading branch information
komapa committed Jun 12, 2023
1 parent 0c6ba28 commit b5a36b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions command/vault/audit_push.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package vault

import (
"fmt"
"time"

"github.com/hashicorp/vault/api"
"github.com/seatgeek/hashi-helper/config"
Expand Down Expand Up @@ -55,6 +56,9 @@ func AuditPushWithConfig(c *cli.Context, config *config.Config) error {
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 b5a36b0

Please sign in to comment.