mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #7197 from vimalk78/fix-ETCD-prefix-check
pkg/flags: fixed prefix checking of the env variables
This commit is contained in:
commit
82d56b6314
@ -121,7 +121,7 @@ func verifyEnv(prefix string, usedEnvKey, alreadySet map[string]bool) {
|
||||
plog.Infof("recognized environment variable %s, but unused: shadowed by corresponding flag ", kv[0])
|
||||
continue
|
||||
}
|
||||
if strings.HasPrefix(env, prefix) {
|
||||
if strings.HasPrefix(env, prefix+"_") {
|
||||
plog.Warningf("unrecognized environment variable %s", env)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user