diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 5a2ca68632bf4c262c3ac4839a5e49c388577ea1..655c25f946c09131dff65c67eb7d1dbd46748088 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -4135,15 +4135,15 @@ class LUSetNodeParams(LogicalUnit): errors.ECODE_STATE) if node.master_candidate and self.might_demote and not self.lock_all: - assert not self.op.auto_promote, "auto-promote set but lock_all not" + assert not self.op.auto_promote, "auto_promote set but lock_all not" # check if after removing the current node, we're missing master # candidates (mc_remaining, mc_should, _) = \ self.cfg.GetMasterCandidateStats(exceptions=[node.name]) if mc_remaining < mc_should: raise errors.OpPrereqError("Not enough master candidates, please" - " pass auto_promote to allow promotion", - errors.ECODE_STATE) + " pass auto promote option to allow" + " promotion", errors.ECODE_STATE) self.old_flags = old_flags = (node.master_candidate, node.drained, node.offline)