Revision bc5d0215 lib/opcodes.py
b/lib/opcodes.py | ||
---|---|---|
141 | 141 |
ht.TListOf(ht.TElemOf(constants.CV_ALL_ECODES_STRINGS)), |
142 | 142 |
"List of error codes that should be treated as warnings") |
143 | 143 |
|
144 |
# Disk parameters |
|
145 |
_PDiskParams = ("diskparams", None, |
|
146 |
ht.TOr( |
|
147 |
ht.TDictOf(ht.TElemOf(constants.DISK_TEMPLATES), ht.TDict), |
|
148 |
ht.TNone), |
|
149 |
"Disk templates' parameter defaults") |
|
150 |
|
|
144 | 151 |
#: OP_ID conversion regular expression |
145 | 152 |
_OPID_RE = re.compile("([a-z])([A-Z])") |
146 | 153 |
|
... | ... | |
762 | 769 |
("osparams", None, ht.TOr(ht.TDictOf(ht.TNonEmptyString, ht.TDict), |
763 | 770 |
ht.TNone), |
764 | 771 |
"Cluster-wide OS parameter defaults"), |
772 |
_PDiskParams, |
|
765 | 773 |
("candidate_pool_size", None, ht.TOr(ht.TStrictPositiveInt, ht.TNone), |
766 | 774 |
"Master candidate pool size"), |
767 | 775 |
("uid_pool", None, ht.NoType, |
... | ... | |
1394 | 1402 |
_PGroupName, |
1395 | 1403 |
_PNodeGroupAllocPolicy, |
1396 | 1404 |
_PGroupNodeParams, |
1405 |
_PDiskParams, |
|
1397 | 1406 |
] |
1398 | 1407 |
|
1399 | 1408 |
|
... | ... | |
1424 | 1433 |
_PGroupName, |
1425 | 1434 |
_PNodeGroupAllocPolicy, |
1426 | 1435 |
_PGroupNodeParams, |
1436 |
_PDiskParams, |
|
1427 | 1437 |
] |
1428 | 1438 |
OP_RESULT = _TSetParamsResult |
1429 | 1439 |
|
Also available in: Unified diff