Cast db value to string before comparison
authorSimo Sorce <simo@redhat.com>
Fri, 12 Sep 2014 21:13:14 +0000 (17:13 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Wed, 24 Sep 2014 18:29:10 +0000 (20:29 +0200)
commita642c3ffedfc270fdd1ae97203e19d631a8e6721
tree4b2378760a3c6705ecc6c642598ae233704db057
parente841faf4a5e729aff8831ef72dab41adb51d6cf0
Cast db value to string before comparison

Avoid false negatives when the sqlite3 db is 'smart' and automatically
converts the type to integer.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
ipsilon/util/user.py