mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #5111 from Amit-PivotalLabs/fix-etcdctl-unset-env
etcdctl: unset ETCDCTL_API env var properly
This commit is contained in:
commit
73b48dd8eb
@ -30,7 +30,7 @@ const (
|
||||
func main() {
|
||||
apiv := os.Getenv(apiEnv)
|
||||
// unset apiEnv to avoid side-effect for future env and flag parsing.
|
||||
os.Unsetenv(apiv)
|
||||
os.Unsetenv(apiEnv)
|
||||
if len(apiv) == 0 || apiv == "2" {
|
||||
ctlv2.Start()
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user