diff --git a/lib/masterd/iallocator.py b/lib/masterd/iallocator.py index 8a04b26f5d23608f5a782e938665de3f4db75a5d..566276342c39d7c5b0bfc27716fc166005eac3aa 100644 --- a/lib/masterd/iallocator.py +++ b/lib/masterd/iallocator.py @@ -130,7 +130,7 @@ class IARequestBase(objectutils.ValidatedSlots): @raises ResultValidationError: If validation fails """ - if not (ia.success and self.REQ_RESULT(result)): + if ia.success and not self.REQ_RESULT(result): raise errors.ResultValidationError("iallocator returned invalid result," " expected %s, got %s" % (self.REQ_RESULT, result))