From 32eae1ecae770524456898206f672b3e8c9e00eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Nussbaumer?= <rn@google.com> Date: Tue, 18 Sep 2012 16:58:54 +0200 Subject: [PATCH] Fix REQ_RESULT for MultiInstanceAllocRequest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RenΓ© Nussbaumer <rn@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/masterd/iallocator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/masterd/iallocator.py b/lib/masterd/iallocator.py index 566276342..e86097dc5 100644 --- a/lib/masterd/iallocator.py +++ b/lib/masterd/iallocator.py @@ -216,8 +216,8 @@ class IAReqMultiInstanceAlloc(IARequestBase): ht.TListOf(ht.TNonEmptyString), ]))) _MAFAILED = ht.TListOf(ht.TNonEmptyString) - REQ_RESULT = ht.TListOf(ht.TAnd(ht.TIsLength(2), - ht.TItems([_MASUCCESS, _MAFAILED]))) + REQ_RESULT = ht.TAnd(ht.TList, ht.TIsLength(2), + ht.TItems([_MASUCCESS, _MAFAILED])) def GetRequest(self, cfg): return { -- GitLab