]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
list_locks must use 1 / 0 for True / False 542/head
authorLoic Dachary <ldachary@redhat.com>
Mon, 29 Jun 2015 13:54:08 +0000 (15:54 +0200)
committerLoic Dachary <ldachary@redhat.com>
Mon, 29 Jun 2015 23:18:10 +0000 (01:18 +0200)
commit2baa086e6aa52f38e3aafff7eca58bdca404786c
treef3bb90b2db992fe6cbb5e9112e85a7a59f4220fd
parentad6855b9dad8d28db07bc15839b719b9a2d6d811
list_locks must use 1 / 0 for True / False

Depending on the backend being used (sqlite or another), paddles won't
interpret locked=false as being the same as locked=0 (see
http://tracker.ceph.com/issues/12183 for more context).

Convert True to 1 and False to 0 to always get the same behavior from
paddles, regardless of the backend.

Signed-off-by: Loic Dachary <loic@dachary.org>
teuthology/lock.py