Revision 43f52ae3 lib/cmdlib.py

b/lib/cmdlib.py
2299 2299
    node_vol_should = {}
2300 2300
    instanceconfig.MapLVsByNode(node_vol_should)
2301 2301

  
2302
    self._VerifyInstancePolicy(instanceconfig)
2302
    ipolicy = _CalculateGroupIPolicy(self.cfg.GetClusterInfo(), self.group_info)
2303
    err = _ComputeIPolicyInstanceViolation(ipolicy, instanceconfig)
2304
    _ErrorIf(err, constants.CV_EINSTANCEPOLICY, instance, err)
2303 2305

  
2304 2306
    for node in node_vol_should:
2305 2307
      n_img = node_image[node]

Also available in: Unified diff