Revision 35049ff2 scripts/gnt-job

b/scripts/gnt-job
53 53
    headers = {
54 54
      "id": "ID",
55 55
      "status": "Status",
56
      "opcodes": "OpCodes",
56
      "op_list": "OpCodes",
57
      "op_status": "OpStatus",
58
      "op_result": "OpResult",
57 59
      }
58 60
  else:
59 61
    headers = None
......
71 73
          val = "pending"
72 74
        elif val == opcodes.Job.STATUS_RUNNING:
73 75
          val = "running"
74
        elif val == opcodes.Job.STATUS_FINISHED:
76
        elif val == opcodes.Job.STATUS_SUCCESS:
75 77
          val = "finished"
78
        elif val == opcodes.Job.STATUS_FAIL:
79
          val = "failed"
80
        elif val == opcodes.Job.STATUS_ABORT:
81
          val = "aborted"
76 82
        else:
77 83
          raise errors.ProgrammerError("Unknown job status code '%s'" % val)
78 84

  
......
91 97
  'list': (ListJobs, ARGS_NONE,
92 98
            [DEBUG_OPT, NOHDR_OPT, SEP_OPT, USEUNITS_OPT, FIELDS_OPT],
93 99
            "", "List the jobs and their status. The available fields are"
94
           " (see the man page for details): id, status, opcodes."
100
           " (see the man page for details): id, status, op_list,"
101
           " op_status, op_result."
95 102
           " The default field"
96 103
           " list is (in order): id, status."),
97 104
  }

Also available in: Unified diff