os.GetEnv -> os.Getenv
This commit is contained in:
parent
24c6a605ea
commit
23f08a139c
|
@ -89,7 +89,7 @@ func newEtcdBackend(conf map[string]string, logger *log.Logger) (Backend, error)
|
|||
if address, ok := conf["address"]; ok {
|
||||
machines = address
|
||||
}
|
||||
machinesEnv := os.GetEnv("ETCD_ADDR")
|
||||
machinesEnv := os.Getenv("ETCD_ADDR")
|
||||
if machinesEnv != "" {
|
||||
machines = machinesEnv
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue