mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 12:26:34 +02:00
Correctly check for existence of external token_helper binaries
This commit is contained in:
parent
817dd0f44c
commit
ee7850cff3
@ -30,10 +30,10 @@ func ExternalTokenHelperPath(path string) (string, error) {
|
||||
}
|
||||
|
||||
if _, err := os.Stat(path); err != nil {
|
||||
return path, nil
|
||||
return "", fmt.Errorf("unknown error getting the external helper path")
|
||||
}
|
||||
|
||||
return "", fmt.Errorf("unknown error getting the external helper path")
|
||||
return path, nil
|
||||
}
|
||||
|
||||
// ExternalTokenHelper is the struct that has all the logic for storing and retrieving
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user