Revision ea0f78c8

b/lib/cmdlib.py
2421 2421

  
2422 2422
    ipolicy = _CalculateGroupIPolicy(self.cfg.GetClusterInfo(), self.group_info)
2423 2423
    err = _ComputeIPolicyInstanceViolation(ipolicy, instanceconfig)
2424
    _ErrorIf(err, constants.CV_EINSTANCEPOLICY, instance, err)
2424
    _ErrorIf(err, constants.CV_EINSTANCEPOLICY, instance, utils.CommaJoin(err))
2425 2425

  
2426 2426
    for node in node_vol_should:
2427 2427
      n_img = node_image[node]
......
3995 3995
      if violations:
3996 3996
        self.LogWarning("After the ipolicy change the following instances"
3997 3997
                        " violate them: %s",
3998
                        utils.CommaJoin(violations))
3998
                        utils.CommaJoin(utils.NiceSort(violations)))
3999 3999

  
4000 4000
    if self.op.nicparams:
4001 4001
      utils.ForceDictType(self.op.nicparams, constants.NICS_PARAMETER_TYPES)

Also available in: Unified diff