René Nussbaumer
unread,Sep 26, 2012, 8:54:25 AM9/26/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ganeti...@googlegroups.com
---
lib/masterd/iallocator.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/masterd/iallocator.py b/lib/masterd/iallocator.py
index e86097d..71b83d6 100644
--- a/lib/masterd/iallocator.py
+++ b/lib/masterd/iallocator.py
@@ -195,7 +195,7 @@ class IAReqInstanceAlloc(IARequestBase):
"""
IARequestBase.ValidateResult(self, ia, result)
- if len(result) != self.RequiredNodes():
+ if ia.success and len(result) != self.RequiredNodes():
raise errors.ResultValidationError("iallocator returned invalid number"
" of nodes (%s), required %s" %
(len(result), self.RequiredNodes()))
--
1.7.7.3