Skip to content

Commit

Permalink
Don't use server value from config file for etcd-snapshot commands
Browse files Browse the repository at this point in the history
Fixes an issue where running etcd-snapshot commands on a node that has a server address set in the config will manage snapshots on that server, instead of on the local node as intended.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
  • Loading branch information
brandond committed Jul 14, 2024
1 parent 58ab259 commit 1441f76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cli/cmds/etcd_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ var EtcdSnapshotFlags = []cli.Flag{
DataDirFlag,
ServerToken,
&cli.StringFlag{
Name: "server, s",
Usage: "(cluster) Server to connect to",
Name: "etcd-server, s",
Usage: "(cluster) Server with etcd role to connect to",
EnvVar: version.ProgramUpper + "_URL",
Value: "https://127.0.0.1:6443",
Destination: &ServerConfig.ServerURL,
Expand Down

0 comments on commit 1441f76

Please sign in to comment.