Revision 7c070961

b/lib/cmdlib.py
9196 9196
    ial = IAllocator(lu.cfg, lu.rpc,
9197 9197
                     mode=constants.IALLOCATOR_MODE_RELOC,
9198 9198
                     name=instance_name,
9199
                     relocate_from=relocate_from)
9199
                     relocate_from=list(relocate_from))
9200 9200

  
9201 9201
    ial.Run(iallocator_name)
9202 9202

  
......
13133 13133
    elif self.op.mode == constants.IALLOCATOR_MODE_RELOC:
13134 13134
      fname = _ExpandInstanceName(self.cfg, self.op.name)
13135 13135
      self.op.name = fname
13136
      self.relocate_from = self.cfg.GetInstanceInfo(fname).secondary_nodes
13136
      self.relocate_from = \
13137
          list(self.cfg.GetInstanceInfo(fname).secondary_nodes)
13137 13138
    elif self.op.mode == constants.IALLOCATOR_MODE_MEVAC:
13138 13139
      if not hasattr(self.op, "evac_nodes"):
13139 13140
        raise errors.OpPrereqError("Missing attribute 'evac_nodes' on"

Also available in: Unified diff