("reboot_type", ht.NoDefault, ht.TElemOf(constants.REBOOT_TYPES),
"How to reboot instance"),
("reason", (constants.INSTANCE_REASON_SOURCE_UNKNOWN, None),
- ht.TAnd(ht.TOr(ht.TList, ht.TTuple),
- ht.TIsLength(2),
+ ht.TAnd(ht.TIsLength(2),
ht.TItems([
- ht.TElemOf(constants.INSTANCE_REASON_SOURCES),
- ht.TMaybeString,
- ])
- ),
+ ht.TElemOf(constants.INSTANCE_REASON_SOURCES),
+ ht.TMaybeString,
+ ])),
"The reason why the reboot is happening"),
]
OP_RESULT = ht.TNone