Revision 20a32e74

b/lib/opcodes.py
174 174

  
175 175
# TODO: Generate check from constants.INIC_PARAMS_TYPES
176 176
#: Utility function for testing NIC definitions
177
_TestNicDef = ht.TDictOf(ht.TElemOf(constants.INIC_PARAMS),
178
                         ht.TOr(ht.TNone, ht.TNonEmptyString))
177
_TestNicDef = \
178
  ht.Comment("NIC parameters")(ht.TDictOf(ht.TElemOf(constants.INIC_PARAMS),
179
                                          ht.TOr(ht.TNone, ht.TNonEmptyString)))
179 180

  
180 181
_TSetParamsResultItemItems = [
181 182
  ht.Comment("name of changed parameter")(ht.TNonEmptyString),
......
188 189

  
189 190
# TODO: Generate check from constants.IDISK_PARAMS_TYPES (however, not all users
190 191
# of this check support all parameters)
191
_TDiskParams = ht.TDictOf(ht.TElemOf(constants.IDISK_PARAMS),
192
                          ht.TOr(ht.TNonEmptyString, ht.TInt))
192
_TDiskParams = \
193
  ht.Comment("Disk parameters")(ht.TDictOf(ht.TElemOf(constants.IDISK_PARAMS),
194
                                           ht.TOr(ht.TNonEmptyString, ht.TInt)))
193 195

  
194 196
_SUMMARY_PREFIX = {
195 197
  "CLUSTER_": "C_",

Also available in: Unified diff