Revision 8fe9239e
b/lib/cmdlib.py | ||
---|---|---|
3339 | 3339 |
# candidates |
3340 | 3340 |
(mc_remaining, mc_should, _) = \ |
3341 | 3341 |
self.cfg.GetMasterCandidateStats(exceptions=[node.name]) |
3342 |
if mc_remaining != mc_should:
|
|
3342 |
if mc_remaining < mc_should:
|
|
3343 | 3343 |
raise errors.OpPrereqError("Not enough master candidates, please" |
3344 | 3344 |
" pass auto_promote to allow promotion", |
3345 | 3345 |
errors.ECODE_INVAL) |
Also available in: Unified diff