Revision 69b0d82a

b/lib/masterd/iallocator.py
130 130
    @raises ResultValidationError: If validation fails
131 131

  
132 132
    """
133
    if not (ia.success and self.REQ_RESULT(result)):
133
    if ia.success and not self.REQ_RESULT(result):
134 134
      raise errors.ResultValidationError("iallocator returned invalid result,"
135 135
                                         " expected %s, got %s" %
136 136
                                         (self.REQ_RESULT, result))

Also available in: Unified diff