mirror of
https://github.com/Luzifer/vault-openvpn.git
synced 2024-09-18 17:12:57 +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
@ -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 New Issue
Block a user