projects
/
ganeti-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
829e4a7
)
Fix faulty iallocator type check
author
Hrvoje Ribicic
<riba@google.com>
Wed, 28 Oct 2015 17:56:23 +0000
(17:56 +0000)
committer
Hrvoje Ribicic
<riba@google.com>
Wed, 28 Oct 2015 22:59:28 +0000
(23:59 +0100)
Because the ignore-soft-errors parameter is optional rather than always
present, fix the type check in the iallocator request issuing code.
Signed-off-by: Gerard Oskamp <gjo@google.com>
Reviewed-by: Hrvoje Ribicic <riba@google.com>
lib/masterd/iallocator.py
patch
|
blob
|
history
diff --git
a/lib/masterd/iallocator.py
b/lib/masterd/iallocator.py
index
7871dff
..
728a02b
100644
(file)
--- a/
lib/masterd/iallocator.py
+++ b/
lib/masterd/iallocator.py
@@
-369,7
+369,7
@@
class IAReqNodeEvac(IARequestBase):
REQ_PARAMS = [
("instances", _STRING_LIST),
("evac_mode", ht.TEvacMode),
- ("ignore_soft_errors", ht.TBool),
+ ("ignore_soft_errors", ht.TMaybe(ht.TBool)),
]
REQ_RESULT = _NEVAC_RESULT