consul/command/services
Chris Piraino 646da639ee Allow services register command to register an unnamed check
The logic in parsing data files and converting them to data structures
accidentally removed healthchecks with no Name field, even though we
explicitly state in API documentation that is allowed.

We remove the check for "len(results.Checks) == 1" because if the length
of the array is more than 0, we know that it is not a zero value array.
This allows us to register a singular, unnamed check via the CLI.

Fixes #6796
2019-11-15 14:28:36 -06:00
..
deregister Move internal/ to sdk/ (#5568) 2019-03-27 08:54:56 -04:00
register Allow services register command to register an unnamed check 2019-11-15 14:28:36 -06:00
config.go Allow services register command to register an unnamed check 2019-11-15 14:28:36 -06:00
config_test.go Allow services register command to register an unnamed check 2019-11-15 14:28:36 -06:00
services.go command/services 2018-09-27 23:52:17 -07:00
services_test.go command/services 2018-09-27 23:52:17 -07:00