Revision 2197b66f lib/rapi/rlib2.py

b/lib/rapi/rlib2.py
649 649
    return baserlib.SubmitJob([op])
650 650

  
651 651

  
652
class R_2_instances_name_activate_disks(baserlib.R_Generic):
653
  """/2/instances/[instance_name]/activate-disks resource.
654

  
655
  """
656
  def PUT(self):
657
    """Activate disks for an instance.
658

  
659
    The URI might contain ignore_size to ignore current recorded size.
660

  
661
    """
662
    instance_name = self.items[0]
663
    ignore_size = bool(self._checkIntVariable('ignore_size'))
664

  
665
    op = opcodes.OpActivateInstanceDisks(instance_name=instance_name,
666
                                         ignore_size=ignore_size)
667

  
668
    return baserlib.SubmitJob([op])
669

  
670

  
652 671
class _R_Tags(baserlib.R_Generic):
653 672
  """ Quasiclass for tagging resources
654 673

  

Also available in: Unified diff