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: Andrea Spadaccini <[email protected]>
---
 test/ganeti.hooks_unittest.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/ganeti.hooks_unittest.py b/test/ganeti.hooks_unittest.py
index abbb7c1..6a6a6b3 100755
--- a/test/ganeti.hooks_unittest.py
+++ b/test/ganeti.hooks_unittest.py
@@ -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])
 
-- 
1.7.3.1

Reply via email to