mirror of
https://github.com/status-im/consul.git
synced 2025-02-19 17:14:37 +00:00
Merge pull request #4194 from hashicorp/fix-kv-del-validation
Fix KV del command validation error
This commit is contained in:
commit
5f3d20c5cf
@ -84,6 +84,7 @@ func (c *cmd) Run(args []string) int {
|
|||||||
// Specifying a ModifyIndex for a non-CAS operation is not possible.
|
// Specifying a ModifyIndex for a non-CAS operation is not possible.
|
||||||
if c.modifyIndex != 0 && !c.cas {
|
if c.modifyIndex != 0 && !c.cas {
|
||||||
c.UI.Error("Cannot specify -modify-index without -cas!")
|
c.UI.Error("Cannot specify -modify-index without -cas!")
|
||||||
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
// It is not valid to use a CAS and recurse in the same call
|
// It is not valid to use a CAS and recurse in the same call
|
||||||
|
Loading…
x
Reference in New Issue
Block a user