Skip to content

Commit 65ee91e

Browse files
committed
feat(deisctl): move server env variable to etcd
1 parent 975ac6b commit 65ee91e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

updatectl/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func init() {
7373
out = new(tabwriter.Writer)
7474
out.Init(os.Stdout, 0, 8, 1, '\t', 0)
7575
server := "http://localhost:8000" // default server
76-
if serverEnv := os.Getenv("DEISCTL_SERVER"); serverEnv != "" {
76+
if serverEnv := utils.GetKey(constant.UpdatekeyDir, "server", "DEISCTL_SERVER"); serverEnv != "" {
7777
server = serverEnv
7878
}
7979

0 commit comments

Comments
 (0)