Skip to content

Commit 6c75483

Browse files
authored
fix: list audit only once (#1138)
1 parent 1780e9d commit 6c75483

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

vault/resource_audit.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ func auditRead(d *schema.ResourceData, meta interface{}) error {
111111

112112
log.Printf("[DEBUG] Reading audit backends %s from Vault", path)
113113

114-
client.Sys().ListAudit()
115-
116114
audits, err := client.Sys().ListAudit()
117115
if err != nil {
118116
return fmt.Errorf("error reading from Vault: %s", err)

0 commit comments

Comments
 (0)