]> git.droids-corp.org - imapami.git/commit
conditions: fix criteria for 'or'
authorOlivier Matz <zer0@platinum>
Wed, 25 Nov 2015 17:54:18 +0000 (18:54 +0100)
committerOlivier Matz <zer0@platinum>
Wed, 25 Nov 2015 17:54:18 +0000 (18:54 +0100)
commit638e4336394ed3de3c54f249377c4ed61dc1ac0e
treeb846354a08c54d06f7f0c0f3c42628f8d10da69d
parent3938d3959383b313acb6cf09d551b7bf49d525b1
conditions: fix criteria for 'or'

The criteria was wrongly set to None as the following code has
no return value:
  criteria = set().add(criteria)

We should do this instead:
  criteria = set([criteria])

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
imapami/conditions.py