Commit 4b9e8c93 authored by Iustin Pop's avatar Iustin Pop
Browse files

Abstract ignore_consistency opcode parameter



Two opcodes already use it and we need it for a third, time to add a
constant for it.
Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent f01738fc
......@@ -78,6 +78,9 @@ _PTagKind = ("kind", ht.NoDefault, ht.TElemOf(constants.VALID_TAG_TYPES))
#: List of tag strings
_PTags = ("tags", ht.NoDefault, ht.TListOf(ht.TNonEmptyString))
#: Ignore consistency
_PIgnoreConsistency = ("ignore_consistency", False, ht.TBool)
#: OP_ID conversion regular expression
_OPID_RE = re.compile("([a-z])([A-Z])")
......@@ -696,8 +699,8 @@ class OpRepairNodeStorage(OpCode):
OP_PARAMS = [
_PNodeName,
_PStorageType,
_PIgnoreConsistency,
("name", ht.NoDefault, ht.TNonEmptyString),
("ignore_consistency", False, ht.TBool),
]
......@@ -879,7 +882,7 @@ class OpInstanceFailover(OpCode):
OP_PARAMS = [
_PInstanceName,
_PShutdownTimeout,
("ignore_consistency", False, ht.TBool),
_PIgnoreConsistency,
]
......
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