Revision 96d1a0c5 lib/cmdlib.py

b/lib/cmdlib.py
2255 2255
    """Check parameters
2256 2256

  
2257 2257
    """
2258
    if not hasattr(self.op, "candidate_pool_size"):
2259
      self.op.candidate_pool_size = None
2258
    for attr in ["candidate_pool_size",
2259
                 "uid_pool", "add_uids", "remove_uids"]:
2260
      if not hasattr(self.op, attr):
2261
        setattr(self.op, attr, None)
2262

  
2260 2263
    if self.op.candidate_pool_size is not None:
2261 2264
      try:
2262 2265
        self.op.candidate_pool_size = int(self.op.candidate_pool_size)

Also available in: Unified diff