From ea0f78c801838ebc94c5dc26a37b5e757ec4ffc5 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Mon, 14 May 2012 15:33:05 +0200 Subject: [PATCH] Beautify a couple of error messages Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/cmdlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 016b070fc..f0b5fb97c 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -2421,7 +2421,7 @@ class LUClusterVerifyGroup(LogicalUnit, _VerifyErrors): ipolicy = _CalculateGroupIPolicy(self.cfg.GetClusterInfo(), self.group_info) err = _ComputeIPolicyInstanceViolation(ipolicy, instanceconfig) - _ErrorIf(err, constants.CV_EINSTANCEPOLICY, instance, err) + _ErrorIf(err, constants.CV_EINSTANCEPOLICY, instance, utils.CommaJoin(err)) for node in node_vol_should: n_img = node_image[node] @@ -3995,7 +3995,7 @@ class LUClusterSetParams(LogicalUnit): if violations: self.LogWarning("After the ipolicy change the following instances" " violate them: %s", - utils.CommaJoin(violations)) + utils.CommaJoin(utils.NiceSort(violations))) if self.op.nicparams: utils.ForceDictType(self.op.nicparams, constants.NICS_PARAMETER_TYPES) -- GitLab