Commit ca2a5b13 authored by Guido Trotter's avatar Guido Trotter

Add a common error code for confd

If we standardize common error codes, clients can make use of them to
react, rather than trying to parse error strings.
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 197b0f5d
......@@ -652,6 +652,9 @@ CONFD_REPL_STATUSES = frozenset([
CONFD_NODE_ROLE_REGULAR,
) = range(5)
# A few common errors for confd
CONFD_ERROR_UNKNOWN_ENTRY = 1
# Each request is "salted" by the current timestamp.
# This constants decides how many seconds of skew to accept.
# TODO: make this a default and allow the value to be more configurable
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment