mirror of
https://github.com/hashicorp/vault.git
synced 2025-12-15 22:41:50 +01:00
parent
d57fe391f2
commit
f8c657a80a
@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/mitchellh/go-homedir"
|
||||
)
|
||||
@ -46,7 +47,7 @@ func (i *InternalTokenHelper) Get() (string, error) {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return buf.String(), nil
|
||||
return strings.TrimSpace(buf.String()), nil
|
||||
}
|
||||
|
||||
// Store stores the value of the token to the file
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user