Commit 90eb468c authored by Guido Trotter's avatar Guido Trotter
Browse files

CheckBEParams handle a bool BE_AUTO_BALANCE

This only happens at cluster init, if the value is not user-specified.

Reviewed-by: imsnah
parent cc3bcec8
......@@ -542,12 +542,13 @@ def CheckBEParams(beparams):
beparams[item] = val
if item in (constants.BE_AUTO_BALANCE):
val = beparams[item]
if val == constants.VALUE_TRUE:
beparams[item] = True
elif val == constants.VALUE_FALSE:
beparams[item] = False
else:
raise errors.OpPrereqError("Invalid %s value: %s" % (item, val))
if not isinstance(val, bool):
if val == constants.VALUE_TRUE:
beparams[item] = True
elif val == constants.VALUE_FALSE:
beparams[item] = False
else:
raise errors.OpPrereqError("Invalid %s value: %s" % (item, val))
def NiceSort(name_list):
......
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