Revision d12f5c66
b/lib/cmdlib.py | ||
---|---|---|
269 | 269 |
" given type is not a proper type (%s)" % |
270 | 270 |
(attr_name, test)) |
271 | 271 |
if not test(attr_val): |
272 |
logging.error("OpCode %s, parameter %s, has invalid type %s/value %s", |
|
273 |
self.op.OP_ID, attr_name, type(attr_val), attr_val) |
|
272 | 274 |
raise errors.OpPrereqError("Parameter '%s' has invalid type" % |
273 | 275 |
attr_name, errors.ECODE_INVAL) |
274 | 276 |
|
... | ... | |
10053 | 10055 |
("mode", _TElemOf(constants.VALID_IALLOCATOR_MODES)), |
10054 | 10056 |
("name", _TNonEmptyString), |
10055 | 10057 |
("nics", _TOr(_TNone, _TListOf( |
10056 |
_TDictOf(_TElemOf(["mac", "ip", "bridge"]), _TNonEmptyString)))), |
|
10058 |
_TDictOf(_TElemOf(["mac", "ip", "bridge"]), |
|
10059 |
_TOr(_TNone, _TNonEmptyString))))), |
|
10057 | 10060 |
("disks", _TOr(_TNone, _TList)), |
10058 | 10061 |
] |
10059 | 10062 |
_OP_DEFS = [ |
Also available in: Unified diff