Revision 3c286190 lib/masterd/iallocator.py

b/lib/masterd/iallocator.py
40 40
   # Class '...' has no 'OP_ID' member
41 41
   "OP_ID": ht.TElemOf([opcodes.OpInstanceFailover.OP_ID,
42 42
                        opcodes.OpInstanceMigrate.OP_ID,
43
                        opcodes.OpInstanceReplaceDisks.OP_ID])
43
                        opcodes.OpInstanceReplaceDisks.OP_ID]),
44 44
   })))
45 45

  
46 46
_NEVAC_MOVED = \
......
208 208
  # pylint: disable=E1101
209 209
  MODE = constants.IALLOCATOR_MODE_MULTI_ALLOC
210 210
  REQ_PARAMS = [
211
    ("instances", ht.TListOf(ht.TInstanceOf(IAReqInstanceAlloc)))
211
    ("instances", ht.TListOf(ht.TInstanceOf(IAReqInstanceAlloc))),
212 212
    ]
213 213
  _MASUCCESS = \
214 214
    ht.TListOf(ht.TAnd(ht.TIsLength(2),
......
221 221

  
222 222
  def GetRequest(self, cfg):
223 223
    return {
224
      "instances": [iareq.GetRequest(cfg) for iareq in self.instances]
224
      "instances": [iareq.GetRequest(cfg) for iareq in self.instances],
225 225
      }
226 226

  
227 227

  

Also available in: Unified diff