Skip to content

Commit

Permalink
Merge pull request #317 from seatgeek/kiril/sleep
Browse files Browse the repository at this point in the history
Give Vault a little bit of time to complete the DELETE operation
  • Loading branch information
komapa authored Jul 5, 2023
2 parents 0c6ba28 + 0839abd commit 55b8cc2
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 @@ -52,6 +53,9 @@ 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)
}

Expand Down

0 comments on commit 55b8cc2

Please sign in to comment.