diff --git a/lib/utils.py b/lib/utils.py
index 17b5d3c65ea9fcbdb3940cbd08e8d35ecaada377..97d6b819843501d1023ce667daafb18488999f6b 100644
--- a/lib/utils.py
+++ b/lib/utils.py
@@ -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):