Revision a82d9394 lib/opcodes.py

b/lib/opcodes.py
1452 1452
    ("reboot_type", ht.NoDefault, ht.TElemOf(constants.REBOOT_TYPES),
1453 1453
     "How to reboot instance"),
1454 1454
    ("reason", (constants.INSTANCE_REASON_SOURCE_UNKNOWN, None),
1455
     ht.TAnd(ht.TOr(ht.TList, ht.TTuple),
1456
             ht.TIsLength(2),
1455
     ht.TAnd(ht.TIsLength(2),
1457 1456
             ht.TItems([
1458
              ht.TElemOf(constants.INSTANCE_REASON_SOURCES),
1459
              ht.TMaybeString,
1460
             ])
1461
             ),
1457
               ht.TElemOf(constants.INSTANCE_REASON_SOURCES),
1458
               ht.TMaybeString,
1459
             ])),
1462 1460
     "The reason why the reboot is happening"),
1463 1461
    ]
1464 1462
  OP_RESULT = ht.TNone

Also available in: Unified diff