Revision db2203e0

b/lib/rpc_defs.py
479 479
    ], None, None, "Modify hosts file with name"),
480 480
  ("drbd_helper", MULTI, None, constants.RPC_TMO_URGENT, [],
481 481
   None, None, "Gets DRBD helper"),
482
  ("restricted_command", MULTI, None, constants.RPC_TMO_SLOW, [
483
    ("cmd", None, "Command name"),
484
    ], None, None, "Runs restricted command"),
482 485
  ("run_oob", SINGLE, None, constants.RPC_TMO_NORMAL, [
483 486
    ("oob_program", None, None),
484 487
    ("command", None, None),
b/lib/server/noded.py
811 811
    return result
812 812

  
813 813
  @staticmethod
814
  def perspective_restricted_command(params):
815
    """Runs a restricted command.
816

  
817
    """
818
    (cmd, ) = params
819

  
820
    return backend.RunRemoteCommand(cmd)
821

  
822
  @staticmethod
814 823
  def perspective_write_ssconf_files(params):
815 824
    """Write ssconf files.
816 825

  

Also available in: Unified diff