From 197b0f5d3d313397fde9abe50f99c87daef5de2f Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Tue, 11 Aug 2009 10:33:08 +0100
Subject: [PATCH] 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: Guido Trotter <ultrotter@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
---
 lib/constants.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/constants.py b/lib/constants.py
index 91c6e31fd..d5e8976ac 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -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.
-- 
GitLab