Skip to content

Commit

Permalink
Merge pull request etcd-io#9100 from gyuho/flag
Browse files Browse the repository at this point in the history
etcdmain: unset ETCD_UNSUPPORTED_ARCH after arch check
  • Loading branch information
gyuho authored Jan 5, 2018
2 parents 872fd9d + 936c474 commit 2fb9728
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etcdmain/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ func checkSupportArch() {
if runtime.GOARCH == "amd64" || runtime.GOARCH == "ppc64le" {
return
}
// unsupported arch only configured via environment variable
// so unset here to not parse through flag
defer os.Unsetenv("ETCD_UNSUPPORTED_ARCH")
if env, ok := os.LookupEnv("ETCD_UNSUPPORTED_ARCH"); ok && env == runtime.GOARCH {
plog.Warningf("running etcd on unsupported architecture %q since ETCD_UNSUPPORTED_ARCH is set", env)
return
Expand Down

0 comments on commit 2fb9728

Please sign in to comment.