etcdctl: unset ETCDCTL_API env var properly

release-3.0
Amit Kumar Gupta 2016-04-15 15:43:00 -07:00
parent 4ed5f66a7a
commit c629a30f1f
1 changed files with 1 additions and 1 deletions

View File

@ -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