Commit 3fc210de authored by Andrea Spadaccini's avatar Andrea Spadaccini
Browse files

Fix parameters of RpcResult in hooks unit tests



In FakeHooksRpcSuccess, the data parameter of the RpcResult constructor
was not enclosed in a tuple. While this does not make the test fail, it
must be fixed.
Signed-off-by: default avatarAndrea Spadaccini <spadaccio@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent b355affb
......@@ -204,7 +204,7 @@ def FakeHooksRpcSuccess(node_list, hpath, phase, env):
"""
rr = rpc.RpcResult
return dict([(node, rr(True, [("utest", constants.HKR_SUCCESS, "ok")],
return dict([(node, rr((True, [("utest", constants.HKR_SUCCESS, "ok")]),
node=node, call='FakeScriptOk'))
for node in node_list])
......
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