Skip to content

Commit

Permalink
Merge pull request hashicorp#377 from jorgemarey/b-approle-secret_id-…
Browse files Browse the repository at this point in the history
…exists

Fix approle_secret-id exists return
  • Loading branch information
Becca Petrin authored Apr 29, 2019
2 parents 5f8539e + ceb3271 commit 3105128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/resource_approle_auth_backend_role_secret_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func approleAuthBackendRoleSecretIDExists(d *schema.ResourceData, meta interface
if err != nil {
// We need to check if the secret_id has expired
if util.IsExpiredTokenErr(err) {
return true, nil
return false, nil
}
return true, fmt.Errorf("error checking if AppRole auth backend role SecretID %q exists: %s", id, err)
}
Expand Down

0 comments on commit 3105128

Please sign in to comment.