consul force-leave is not validating input
- Dominant language
- Go
- Stars
- 30.1k
- Forks
- 4.6k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 43
Description
If you have a question, please direct it to the
[consul mailing list](https://www.consul.io/community.html) if it hasn't been
addressed in either the [FAQ](https://www.consul.io/docs/faq.html) or in one
of the [Consul Guides](https://www.consul.io/docs/guides/index.html).
When filing a bug, please include the following:
### `consul version` for both Client and Server
Client: `0.9.3+ent`
Server: `0.9.3+ent`
### Description of the Issue (and unexpected/desired result)
Consul force-leave command command is not validating input. So if there is a typo or misunderstanding (e.g. using ip instead of node name) consul will silently accept it without any actions. I think it should return "node not found" or something like that.
### Reproduction steps
```
~ $ consul force-leave nonexisting;echo $?
0
```
Contributor guide
Assessment
This issue has not been assessed yet.