Fix style violations in commit 4a90bd4, small changes
[ganeti-local] / lib / opcodes.py
index 43f4973..59af3f6 100644 (file)
@@ -1452,13 +1452,11 @@ class OpInstanceReboot(OpCode):
     ("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