Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
The consul config delete command deletes the configuration entry specified by the kind and name. However, it always reports success, even if the entry does not exist.
Overview of the Issue
The
consul config delete
command deletes the configuration entry specified by the kind and name. However, it always reports success, even if the entry does not exist.Reproduction Steps
Steps to reproduce this issue, eg:
consul agent -dev
consul config delete
with any Kind and NameConsul info for both Client and Server
Consul 1.16.0
I believe the fix is straightforward and would like to contribute a PR.
https://github.com/hashicorp/consul/blob/62005369b54c63ccd7842c001de740ff3795d02c/agent/consul/config_endpoint.go#L135-L150