Revision 48796673

b/lib/opcodes.py
1741 1741
    # Name is only meaningful for nodes and instances
1742 1742
    ("name", ht.NoDefault, ht.TMaybeString, None),
1743 1743
    ]
1744
  OP_RESULT = ht.TListOf(ht.TNonEmptyString)
1744 1745

  
1745 1746

  
1746 1747
class OpTagsSearch(OpCode):
......
1749 1750
  OP_PARAMS = [
1750 1751
    ("pattern", ht.NoDefault, ht.TNonEmptyString, None),
1751 1752
    ]
1753
  OP_RESULT = ht.TListOf(ht.TAnd(ht.TIsLength(2), ht.TItems([
1754
    ht.TNonEmptyString,
1755
    ht.TNonEmptyString,
1756
    ])))
1752 1757

  
1753 1758

  
1754 1759
class OpTagsSet(OpCode):
......
1759 1764
    # Name is only meaningful for nodes and instances
1760 1765
    ("name", ht.NoDefault, ht.TMaybeString, None),
1761 1766
    ]
1767
  OP_RESULT = ht.TNone
1762 1768

  
1763 1769

  
1764 1770
class OpTagsDel(OpCode):
......
1769 1775
    # Name is only meaningful for nodes and instances
1770 1776
    ("name", ht.NoDefault, ht.TMaybeString, None),
1771 1777
    ]
1778
  OP_RESULT = ht.TNone
1772 1779

  
1773 1780

  
1774 1781
# Test 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.OpTagsDel,
42
  opcodes.OpTagsGet,
43
  opcodes.OpTagsSearch,
44
  opcodes.OpTagsSet,
45 41
  opcodes.OpTestAllocator,
46 42
  opcodes.OpTestDelay,
47 43
  opcodes.OpTestDummy,

Also available in: Unified diff