Revision 202fb4e0

b/lib/opcodes.py
1612 1612
    ("nodes", ht.EmptyList, ht.TListOf(ht.TNonEmptyString),
1613 1613
     "Empty list to query all nodes, node names otherwise"),
1614 1614
    ]
1615
  OP_RESULT = ht.TDictOf(ht.TNonEmptyString,
1616
                         ht.TOr(ht.Comment("False on error")(ht.TBool),
1617
                                ht.TListOf(ht.TNonEmptyString)))
1615 1618

  
1616 1619

  
1617 1620
class OpBackupPrepare(OpCode):
......
1666 1669
    ("destination_x509_ca", None, ht.TMaybeString,
1667 1670
     "Destination X509 CA (remote export only)"),
1668 1671
    ]
1672
  OP_RESULT = \
1673
    ht.TAnd(ht.TIsLength(2), ht.TItems([
1674
      ht.Comment("Finalizing status")(ht.TBool),
1675
      ht.Comment("Status for every exported disk")(ht.TListOf(ht.TBool)),
1676
      ]))
1669 1677

  
1670 1678

  
1671 1679
class OpBackupRemove(OpCode):
......
1674 1682
  OP_PARAMS = [
1675 1683
    _PInstanceName,
1676 1684
    ]
1685
  OP_RESULT = ht.TNone
1677 1686

  
1678 1687

  
1679 1688
# Tags opcodes
b/test/ganeti.opcodes_unittest.py
38 38
#: Unless an opcode is included in the following list it must have a result
39 39
#: check of some sort
40 40
MISSING_RESULT_CHECK = frozenset([
41
  opcodes.OpBackupExport,
42
  opcodes.OpBackupQuery,
43
  opcodes.OpBackupRemove,
44 41
  opcodes.OpClusterQuery,
45 42
  opcodes.OpGroupQuery,
46 43
  opcodes.OpInstanceQuery,

Also available in: Unified diff