projects
/
ganeti-local
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LUInstanceRename: Compare name with name
[ganeti-local]
/
lib
/
errors.py
diff --git
a/lib/errors.py
b/lib/errors.py
index
9de3b6d
..
1812886
100644
(file)
--- a/
lib/errors.py
+++ b/
lib/errors.py
@@
-189,6
+189,12
@@
class OpExecError(GenericError):
"""
"""
+class OpResultError(GenericError):
+ """Issue with OpCode result.
+
+ """
+
+
class OpCodeUnknown(GenericError):
"""Unknown opcode submitted.
class OpCodeUnknown(GenericError):
"""Unknown opcode submitted.
@@
-476,4
+482,4
@@
def MaybeRaise(result):
error = GetEncodedError(result)
if error:
(errcls, args) = error
error = GetEncodedError(result)
if error:
(errcls, args) = error
- raise errcls, args
+ raise errcls(args)