Commit 96d1a0c5 authored by Iustin Pop's avatar Iustin Pop
Browse files

LUSetClusterParams: initialize needed parameters

… since the opcode doesn't auto-initialize to None.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarBalazs Lecz <>
parent 9e302a8c
......@@ -2255,8 +2255,11 @@ class LUSetClusterParams(LogicalUnit):
"""Check parameters
if not hasattr(self.op, "candidate_pool_size"):
self.op.candidate_pool_size = None
for attr in ["candidate_pool_size",
"uid_pool", "add_uids", "remove_uids"]:
if not hasattr(self.op, attr):
setattr(self.op, attr, None)
if self.op.candidate_pool_size is not None:
self.op.candidate_pool_size = int(self.op.candidate_pool_size)
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