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