mantl / consul-cli

Command line interface to Consul HTTP API
Apache License 2.0
251 stars 67 forks source link

warn about deregistering services that don't exist #28

Closed langston-barrett closed 8 years ago

langston-barrett commented 8 years ago

The Consul API will return a 404 for this kind of request, so I think it makes sense to issue a warning for it.

ChrisAubuchon commented 8 years ago

Where are you seeing it return 404?

[chris@chris-control-01 ~]$ curl localhost:8500/v1/agent/service/deregister/unknownservice
[chris@chris-control-01 ~]$ 
langston-barrett commented 8 years ago

Oh, the catalog endpoint returns a 404. Never mind, that one makes more sense!