Commit f08ce603 authored by Guido Trotter's avatar Guido Trotter
Browse files

LUAddNode: Check the correct result

This is a typo in the conversion to RpcResult

Reviewed-by: imsnah
parent 4ce6007f
......@@ -2017,7 +2017,7 @@ class LUAddNode(LogicalUnit):
result = self.rpc.call_node_verify(node_verify_list, node_verify_param,
for verifier in node_verify_list:
if result.failed or not result[verifier].data:
if result[verifier].failed or not result[verifier].data:
raise errors.OpExecError("Cannot communicate with %s's node daemon"
" for remote verification" % verifier)
if result[verifier].data['nodelist']:
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