Revision 2945fd2d lib/cmdlib.py

b/lib/cmdlib.py
5883 5883
      raise errors.OpPrereqError("The specified node is already the"
5884 5884
                                 " secondary node of the instance.")
5885 5885

  
5886
    if self.mode == constants.REPLACE_DISK_AUTO:
5887
      if self.disks:
5888
        raise errors.OpPrereqError("Cannot specify disks to be replaced")
5886
    if self.disks and self.mode in (constants.REPLACE_DISK_AUTO,
5887
                                    constants.REPLACE_DISK_CHG):
5888
      raise errors.OpPrereqError("Cannot specify disks to be replaced")
5889 5889

  
5890
    if self.mode == constants.REPLACE_DISK_AUTO:
5890 5891
      faulty_primary = self._FindFaultyDisks(self.instance.primary_node)
5891 5892
      faulty_secondary = self._FindFaultyDisks(secondary_node)
5892 5893

  

Also available in: Unified diff