Commit 197b0f5d authored by Guido Trotter's avatar Guido Trotter
Browse files

Add a missing node role



Apart from being a master, a candidate, offline or drained, a node can
have one more state: none of those. Adding back the normal, nice,
healthy "just" a node! :)
Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent d21eda27
......@@ -648,7 +648,9 @@ CONFD_REPL_STATUSES = frozenset([
(CONFD_NODE_ROLE_MASTER,
CONFD_NODE_ROLE_CANDIDATE,
CONFD_NODE_ROLE_OFFLINE,
CONFD_NODE_ROLE_DRAINED) = range(4)
CONFD_NODE_ROLE_DRAINED,
CONFD_NODE_ROLE_REGULAR,
) = range(5)
# Each request is "salted" by the current timestamp.
# This constants decides how many seconds of skew to accept.
......
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