From c629a30f1fd0bec32aaeb32e2fa0005bc6446549 Mon Sep 17 00:00:00 2001 From: Amit Kumar Gupta Date: Fri, 15 Apr 2016 15:43:00 -0700 Subject: [PATCH] etcdctl: unset ETCDCTL_API env var properly --- etcdctl/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etcdctl/main.go b/etcdctl/main.go index cf353e343..b41c6407c 100644 --- a/etcdctl/main.go +++ b/etcdctl/main.go @@ -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