Revision fdad8c4d lib/cmdlib.py

b/lib/cmdlib.py
2272 2272
    if self.op.uid_pool:
2273 2273
      uidpool.CheckUidPool(self.op.uid_pool)
2274 2274

  
2275
    if self.op.add_uids:
2276
      uidpool.CheckUidPool(self.op.add_uids)
2277

  
2278
    if self.op.remove_uids:
2279
      uidpool.CheckUidPool(self.op.remove_uids)
2280

  
2275 2281
  def ExpandNames(self):
2276 2282
    # FIXME: in the future maybe other cluster params won't require checking on
2277 2283
    # all nodes to be modified.
......
2466 2472
    if self.op.maintain_node_health is not None:
2467 2473
      self.cluster.maintain_node_health = self.op.maintain_node_health
2468 2474

  
2475
    if self.op.add_uids is not None:
2476
      uidpool.AddToUidPool(self.cluster.uid_pool, self.op.add_uids)
2477

  
2478
    if self.op.remove_uids is not None:
2479
      uidpool.RemoveFromUidPool(self.cluster.uid_pool, self.op.remove_uids)
2480

  
2469 2481
    if self.op.uid_pool is not None:
2470 2482
      self.cluster.uid_pool = self.op.uid_pool
2471 2483

  

Also available in: Unified diff