Revision 3aa8ed2b

b/lib/opcodes.py
413 413
  # pylint: disable-msg=E1101
414 414
  # as OP_ID is dynamically defined
415 415
  WITH_LU = True
416
  _T_JOB_DEP = \
417
    ht.TAnd(ht.TIsLength(2),
418
            ht.TItems([ht.TJobId,
419
                       ht.TListOf(ht.TElemOf(constants.JOBS_FINALIZED))]))
416 420
  OP_PARAMS = [
417 421
    ("dry_run", None, ht.TMaybeBool, "Run checks only, don't execute"),
418 422
    ("debug_level", None, ht.TOr(ht.TNone, ht.TPositiveInt), "Debug level"),
419 423
    ("priority", constants.OP_PRIO_DEFAULT,
420 424
     ht.TElemOf(constants.OP_PRIO_SUBMIT_VALID), "Opcode priority"),
425
    ("depends", None, ht.TOr(ht.TNone, ht.TListOf(_T_JOB_DEP)),
426
     "Job dependencies"),
421 427
    ]
422 428

  
423 429
  def __getstate__(self):

Also available in: Unified diff