mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
pkg/flags: fixed prefix checking of the env variables
This commit is contained in:
parent
94eec5d41a
commit
e4b8c874d2
@ -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])
|
plog.Infof("recognized environment variable %s, but unused: shadowed by corresponding flag ", kv[0])
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(env, prefix) {
|
if strings.HasPrefix(env, prefix+"_") {
|
||||||
plog.Warningf("unrecognized environment variable %s", env)
|
plog.Warningf("unrecognized environment variable %s", env)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user