Skip to content

Commit

Permalink
Remove wrapping and cli specific code that modifies the client
Browse files Browse the repository at this point in the history
Signed-off-by: David Dobmeier <david.dobmeier@dcsg.com>
  • Loading branch information
daviddob committed Oct 6, 2020
1 parent 8950d7d commit 1d264fb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions atc/creds/vault/vault_kvhelpers.go
Expand Up @@ -13,15 +13,6 @@ import (
// https://github.com/hashicorp/vault/blob/4b790d2c42f406a980230c196eeeb5b9b52a7cf1/command/kv_helpers.go#L44-L116

func kvPreflightVersionRequest(client *api.Client, path string) (string, int, error) {
// We don't want to use a wrapping call here so save any custom value and
// restore after
currentWrappingLookupFunc := client.CurrentWrappingLookupFunc()
client.SetWrappingLookupFunc(nil)
defer client.SetWrappingLookupFunc(currentWrappingLookupFunc)
currentOutputCurlString := client.OutputCurlString()
client.SetOutputCurlString(false)
defer client.SetOutputCurlString(currentOutputCurlString)

r := client.NewRequest("GET", "/v1/sys/internal/ui/mounts/"+path)
resp, err := client.RawRequest(r)
if resp != nil {
Expand Down

0 comments on commit 1d264fb

Please sign in to comment.