Revision 4a90bd4f lib/opcodes.py
b/lib/opcodes.py | ||
---|---|---|
1451 | 1451 |
"Whether to start the instance even if secondary disks are failing"), |
1452 | 1452 |
("reboot_type", ht.NoDefault, ht.TElemOf(constants.REBOOT_TYPES), |
1453 | 1453 |
"How to reboot instance"), |
1454 |
("reason", (constants.INSTANCE_REASON_SOURCE_UNKNOWN, None), |
|
1455 |
ht.TAnd(ht.TOr(ht.TList, ht.TTuple), |
|
1456 |
ht.TIsLength(2), |
|
1457 |
ht.TItems([ |
|
1458 |
ht.TElemOf(constants.INSTANCE_REASON_SOURCES), |
|
1459 |
ht.TMaybeString, |
|
1460 |
]) |
|
1461 |
), |
|
1462 |
"The reason why the reboot is happening"), |
|
1454 | 1463 |
] |
1455 | 1464 |
OP_RESULT = ht.TNone |
1456 | 1465 |
|
Also available in: Unified diff