projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd061c3
)
Fix RpcResult.Raise error code
author
Iustin Pop
<iustin@google.com>
Sat, 12 Jun 2010 00:29:01 +0000
(
02:29
+0200)
committer
Iustin Pop
<iustin@google.com>
Sun, 13 Jun 2010 21:17:19 +0000
(23:17 +0200)
A typo in the Raise() method of rpc.RpcResult means that any remote
errors will lack an appropriate error code; this will confuse e.g. RAPI
users.
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/rpc.py
patch
|
blob
|
history
diff --git
a/lib/rpc.py
b/lib/rpc.py
index
6de365b
..
fa896c2
100644
(file)
--- a/
lib/rpc.py
+++ b/
lib/rpc.py
@@
-160,7
+160,7
@@
class RpcResult(object):
else:
ec = errors.OpExecError
if ecode is not None:
- args = (msg, prereq)
+ args = (msg, ecode)
else:
args = (msg, )
raise ec(*args) # pylint: disable-msg=W0142