consul/command
Seth Vargo 532f8d1435
Parse values given to ?passing in the API
This PR fixes GH-2212 in the most backwards-compatible way I can think
of. If the user does not pass a value for `?passing`, it's assumed to be
true, which mirrors the current behavior. However, if the user passes
any value for passing, that value is parsed as a bool using strconv.

It's important to note that this is technically a breaking change.
Previously using `?passing=false` would return only passing nodes. While
this behavior is obviously incorrect, it was the previous behavior. We
should call this out very clearly in the CHANGELOG.
2017-06-09 14:36:00 -04:00
..
agent Parse values given to ?passing in the API 2017-06-09 14:36:00 -04:00
base golint: Fix existing comments 2017-04-25 09:26:13 -07:00
configtest.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
configtest_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
event.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
event_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
exec.go Merge pull request #2901 from deckarep/consul-ensure-exit-non-zero-on-timeout 2017-05-18 10:25:50 -04:00
exec_test.go test: replace one more BoolFalse with agent.Bool() 2017-05-31 11:41:17 +02:00
force_leave.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
force_leave_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
info.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
info_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
join.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
join_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
keygen.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
keygen_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
keyring.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
keyring_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
kv_command.go Convert kv commands to use base.Command 2017-02-08 19:26:24 -05:00
kv_command_test.go test: run command tests in parallel 2017-05-31 00:29:25 +02:00
kv_delete.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
kv_delete_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
kv_export.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
kv_export_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
kv_get.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
kv_get_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
kv_import.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
kv_import_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
kv_put.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
kv_put_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
leave.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
leave_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
lock.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
lock_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
maint.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
maint_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
members.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
members_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
monitor.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
operator.go Split operator raft command into subcommands 2017-02-15 13:53:34 -08:00
operator_autopilot.go Added operator autopilot subcommands 2017-02-24 15:54:49 -08:00
operator_autopilot_get.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
operator_autopilot_get_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
operator_autopilot_set.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
operator_autopilot_set_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
operator_autopilot_test.go test: run command tests in parallel 2017-05-31 00:29:25 +02:00
operator_raft.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
operator_raft_list.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
operator_raft_list_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
operator_raft_remove.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
operator_raft_remove_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
operator_raft_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
operator_test.go test: run command tests in parallel 2017-05-31 00:29:25 +02:00
reload.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
reload_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
rtt.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
rtt_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
snapshot_command.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
snapshot_command_test.go test: run command tests in parallel 2017-05-31 00:29:25 +02:00
snapshot_inspect.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
snapshot_inspect_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
snapshot_restore.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
snapshot_restore_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
snapshot_save.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
snapshot_save_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00
util_test.go test: refactor command tests to use TestAgent 2017-05-31 00:29:24 +02:00
util_unix.go command: fix Windows build 2015-01-25 05:00:52 +01:00
util_windows.go docs: describe child process handling on Windows for lock command 2015-01-25 11:42:29 +01:00
validate.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
validate_test.go test: fix failing test 2017-05-31 00:29:26 +02:00
version.go golint: Rename fields and structs 2017-04-25 09:26:13 -07:00
version_test.go test: run command tests in parallel 2017-05-31 00:29:25 +02:00
watch.go Itty bitty typo 2017-05-02 16:08:07 -07:00
watch_test.go test: use cli.NewMockUi instead of new(cli.MockUi) 2017-05-31 00:29:26 +02:00