mirror of
https://github.com/Luzifer/vault-openvpn.git
synced 2024-12-25 14:21:21 +00:00
Allow overwriting the vault token by setting only the default
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e48ab2dc51
commit
a0b26ea1ae
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ func init() {
|
|||
viper.BindEnv("vault-token", "VAULT_TOKEN")
|
||||
|
||||
if tok := vaultTokenFromDisk(); tok != "" {
|
||||
viper.Set("vault-token", tok)
|
||||
viper.SetDefault("vault-token", tok)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue