Commit 34956ece authored by Thomas Thrainer's avatar Thomas Thrainer
Browse files

Remove unneeded except block

The validation of the opcodes already checks the size parameter for the
right type, so this except block is not required.
Signed-off-by: default avatarThomas Thrainer <>
Reviewed-by: default avatarKlaus Aehlig <>
parent f667baab
......@@ -2299,12 +2299,7 @@ class LUInstanceSetParams(LogicalUnit):
if size is None:
raise errors.OpPrereqError("Required disk parameter '%s' missing" %
constants.IDISK_SIZE, errors.ECODE_INVAL)
size = int(size)
except (TypeError, ValueError), err:
raise errors.OpPrereqError("Invalid disk size parameter: %s" % err,
size = int(size)
params[constants.IDISK_SIZE] = size
name = params.get(constants.IDISK_NAME, None)
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