Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
feat(deisctl): move server env variable to etcd
Browse files Browse the repository at this point in the history
  • Loading branch information
smothiki committed Aug 16, 2014
1 parent 975ac6b commit 65ee91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion updatectl/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func init() {
out = new(tabwriter.Writer)
out.Init(os.Stdout, 0, 8, 1, '\t', 0)
server := "http://localhost:8000" // default server
if serverEnv := os.Getenv("DEISCTL_SERVER"); serverEnv != "" {
if serverEnv := utils.GetKey(constant.UpdatekeyDir, "server", "DEISCTL_SERVER"); serverEnv != "" {
server = serverEnv
}

Expand Down

0 comments on commit 65ee91e

Please sign in to comment.