Commit 7486d752 authored by Iustin Pop's avatar Iustin Pop
Browse files

Remove _CheckBooleanOpField

This is no longer used, and we can remove it.
Signed-off-by: default avatarIustin Pop <>
Reviewed-by: default avatarGuido Trotter <>
parent b8812691
......@@ -719,20 +719,6 @@ def _CheckOutputFields(static, dynamic, selected):
% ",".join(delta), errors.ECODE_INVAL)
def _CheckBooleanOpField(op, name):
"""Validates boolean opcode parameters.
This will ensure that an opcode parameter is either a boolean value,
or None (but that it always exists).
val = getattr(op, name, None)
if not (val is None or isinstance(val, bool)):
raise errors.OpPrereqError("Invalid boolean parameter '%s' (%s)" %
(name, str(val)), errors.ECODE_INVAL)
setattr(op, name, val)
def _CheckGlobalHvParams(params):
"""Validates that given hypervisor params are not global ones.
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