Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etcdctl: suggest endpoint over peers flag #3390

Merged
merged 1 commit into from
Aug 28, 2015
Merged

Conversation

xiang90
Copy link
Contributor

@xiang90 xiang90 commented Aug 27, 2015

Fix ##3341

We still support peers flag, but print out a warning.

./etcdctl --peers http://127.0.0.1:9999 set foo bar
flag peers may not work in future releases; use endpoint

But I am not sure if someone would rely on the output of etcdctl... They should not though since we never try to maintain the same format for each release.

/cc @philips @robszumski @yichengq Any opinion on this?

Decision is to keep the pervious behavior

}

if peerstr == "" {
fmt.Println("warning: flag peers may not work in future releases; use endpoint")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flag --peers ... use flag --endpoint

for more clarity

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure.

@philips
Copy link
Contributor

philips commented Aug 28, 2015

I think we should just continue being backwards compatible and not break this. The flags and output are CoreOS API at this point.

@xiang90
Copy link
Contributor Author

xiang90 commented Aug 28, 2015

@philips Agree.

@xiang90
Copy link
Contributor Author

xiang90 commented Aug 28, 2015

@philips @yichengq PTAL

@yichengq
Copy link
Contributor

lgtm

xiang90 added a commit that referenced this pull request Aug 28, 2015
etcdctl: suggest endpoint over peers flag
@xiang90 xiang90 merged commit 9d78d84 into etcd-io:master Aug 28, 2015
@xiang90 xiang90 deleted the ctl_peer branch August 28, 2015 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants