Revision 7a5d3bbd

b/scripts/gnt-job
33 33
from ganeti import errors
34 34

  
35 35

  
36
_LIST_DEF_FIELDS = ["id", "status"]
37

  
36 38
def ListJobs(opts, args):
37 39
  """List the jobs
38 40

  
39 41
  """
40 42
  if opts.output is None:
41
    selected_fields = ["id", "status"]
43
    selected_fields = _LIST_DEF_FIELDS
44
  elif opts.output.startswith("+"):
45
    selected_fields = _LIST_DEF_FIELDS + opts.output[1:].split(",")
42 46
  else:
43 47
    selected_fields = opts.output.split(",")
44 48

  
......
100 104
           " (see the man page for details): id, status, op_list,"
101 105
           " op_status, op_result."
102 106
           " The default field"
103
           " list is (in order): id, status."),
107
           " list is (in order): %s." % ", ".join(_LIST_DEF_FIELDS))
104 108
  }
105 109

  
106 110

  

Also available in: Unified diff