Revision aa12a891 lib/opcodes.py

b/lib/opcodes.py
193 193
  ht.Comment("Disk parameters")(ht.TDictOf(ht.TElemOf(constants.IDISK_PARAMS),
194 194
                                           ht.TOr(ht.TNonEmptyString, ht.TInt)))
195 195

  
196
_TQueryRow = \
197
  ht.TListOf(ht.TAnd(ht.TIsLength(2),
198
                     ht.TItems([ht.TElemOf(constants.RS_ALL),
199
                                ht.TAny])))
200

  
196 201
_SUMMARY_PREFIX = {
197 202
  "CLUSTER_": "C_",
198 203
  "GROUP_": "G_",
......
914 919
     "Time in seconds to wait between powering on nodes"),
915 920
    ]
916 921
  # Fixme: Make it more specific with all the special cases in LUOobCommand
917
  OP_RESULT = ht.TListOf(ht.TAnd(ht.TIsLength(2),
918
                                 ht.TItems([ht.TElemOf(constants.RS_ALL),
919
                                            ht.TAny])))
922
  OP_RESULT = ht.TListOf(_TQueryRow)
920 923

  
921 924

  
922 925
# node opcodes

Also available in: Unified diff