Commit a02bc76e authored by Iustin Pop's avatar Iustin Pop
Browse files

A CheckPrereq method had one unconverted "return 1" statement. Change it to the

appropriate raise.

Reviewed-by: imsnah
parent ce482672
......@@ -1052,8 +1052,7 @@ class LURemoveNode(LogicalUnit):
node = self.cfg.GetNodeInfo(self.cfg.ExpandNodeName(self.op.node_name))
if node is None:
logger.Error("Error: Node '%s' is unknown." % self.op.node_name)
return 1
raise errors.OpPrereqError, ("Node '%s' is unknown." % self.op.node_name)
instance_list = self.cfg.GetInstanceList()
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