Revision c50452c3 lib/cmdlib.py

b/lib/cmdlib.py
10148 10148
    else:
10149 10149
      # All instances
10150 10150
      assert self.op.mode == constants.IALLOCATOR_NEVAC_ALL
10151
      # TODO: In 2.6, change the iallocator interface to take an evacuation mode
10152
      # per instance
10153
      raise errors.OpPrereqError("Due to an issue with the iallocator"
10154
                                 " interface it is not possible to evacuate"
10155
                                 " all instances at once; specify explicitly"
10156
                                 " whether to evacuate primary or secondary"
10157
                                 " instances",
10158
                                 errors.ECODE_INVAL)
10151 10159
      inst_fn = _GetNodeInstances
10152 10160

  
10153 10161
    return inst_fn(self.cfg, self.op.node_name)

Also available in: Unified diff