Revision d0c8c01d lib/client/gnt_job.py

b/lib/client/gnt_job.py
157 157

  
158 158
  age = args[0]
159 159

  
160
  if age == 'all':
160
  if age == "all":
161 161
    age = -1
162 162
  else:
163 163
    age = ParseTimespec(age)
......
357 357

  
358 358

  
359 359
commands = {
360
  'list': (
360
  "list": (
361 361
    ListJobs, [ArgJobId()],
362 362
    [NOHDR_OPT, SEP_OPT, FIELDS_OPT],
363 363
    "[job_id ...]",
......
366 366
    " op_status, op_result."
367 367
    " The default field"
368 368
    " list is (in order): %s." % utils.CommaJoin(_LIST_DEF_FIELDS)),
369
  'archive': (
369
  "archive": (
370 370
    ArchiveJobs, [ArgJobId(min=1)], [],
371 371
    "<job-id> [<job-id> ...]", "Archive specified jobs"),
372
  'autoarchive': (
372
  "autoarchive": (
373 373
    AutoArchiveJobs,
374 374
    [ArgSuggest(min=1, max=1, choices=["1d", "1w", "4w", "all"])],
375 375
    [],
376 376
    "<age>", "Auto archive jobs older than the given age"),
377
  'cancel': (
377
  "cancel": (
378 378
    CancelJobs, [ArgJobId(min=1)], [],
379 379
    "<job-id> [<job-id> ...]", "Cancel specified jobs"),
380
  'info': (
380
  "info": (
381 381
    ShowJobs, [ArgJobId(min=1)], [],
382 382
    "<job-id> [<job-id> ...]",
383 383
    "Show detailed information about the specified jobs"),
384
  'watch': (
384
  "watch": (
385 385
    WatchJob, [ArgJobId(min=1, max=1)], [],
386 386
    "<job-id>", "Follows a job and prints its output as it arrives"),
387 387
  }

Also available in: Unified diff