Revision 6099bfcf

b/scripts/gnt-debug
39 39
def Delay(opts, args):
40 40
  """Sleeps for a while
41 41

  
42
  @param opts: the command line options selected by the user
43
  @type args: list
44
  @param args: should contain only one element, the duration
45
      the sleep
46
  @rtype: int
47
  @return: the desired exit code
48

  
42 49
  """
43 50
  delay = float(args[0])
44 51
  op = opcodes.OpTestDelay(duration=delay,
......
50 57

  
51 58

  
52 59
def GenericOpCodes(opts, args):
53
  """Send any opcode to the master
60
  """Send any opcode to the master.
61

  
62
  @todo: The function is broken and needs to be converted to the
63
      current job queue API
64
  @param opts: the command line options selected by the user
65
  @type args: list
66
  @param args: should contain only one element, the path of
67
      the file with the opcode definition
68
  @rtype: int
69
  @return: the desired exit code
54 70

  
55 71
  """
56 72
  fname = args[0]
......
96 112

  
97 113

  
98 114
def TestAllocator(opts, args):
99
  """Runs the test allocator opcode"""
115
  """Runs the test allocator opcode.
100 116

  
117
  @param opts: the command line options selected by the user
118
  @type args: list
119
  @param args: should contain only one element, the iallocator name
120
  @rtype: int
121
  @return: the desired exit code
122

  
123
  """
101 124
  try:
102 125
    disks = [{"size": utils.ParseUnit(val), "mode": 'w'}
103 126
             for val in opts.disks.split(",")]
b/scripts/gnt-os
33 33

  
34 34

  
35 35
def ListOS(opts, args):
36
  """List the OSes existing on this node.
36
  """List the valid OSes in the cluster.
37

  
38
  @param opts: the command line options selected by the user
39
  @type args: list
40
  @param args: should be an empty list
41
  @rtype: int
42
  @return: the desired exit code
37 43

  
38 44
  """
39 45
  op = opcodes.OpDiagnoseOS(output_fields=["name", "valid"], names=[])
......
60 66
def DiagnoseOS(opts, args):
61 67
  """Analyse all OSes on this cluster.
62 68

  
69
  @param opts: the command line options selected by the user
70
  @type args: list
71
  @param args: should be an empty list
72
  @rtype: int
73
  @return: the desired exit code
74

  
63 75
  """
64 76
  op = opcodes.OpDiagnoseOS(output_fields=["name", "valid", "node_status"],
65 77
                            names=[])

Also available in: Unified diff