Revision 5d672980 lib/rpc.py

b/lib/rpc.py
900 900
    return result
901 901

  
902 902

  
903
  @staticmethod
904
  def call_jobqueue_set_drain(node_list, drain_flag):
905
    """Set the drain flag on the queue.
906

  
907
    This is a multi-node call.
908

  
909
    @type node_list: list
910
    @param node_list: the list of nodes to query
911
    @type drain_flag: bool
912
    @param drain_flag: if True, will set the drain flag, otherwise reset it.
913

  
914
    """
915
    c = Client("jobqueue_set_drain", [drain_flag])
916
    c.connect_list(node_list)
917
    c.run()
918
    result = c.getresult()
919
    return result
920

  
921

  
903 922
  def call_hypervisor_validate_params(self, node_list, hvname, hvparams):
904 923
    """Validate the hypervisor params.
905 924

  

Also available in: Unified diff