From 7146db921595a78968a3fcf657916bccf878c4aa Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Thu, 2 Feb 2012 09:27:04 -0800 Subject: [PATCH] ceph: use the correct comparison operator is compares identity (i.e. address in cpython), not value. --- teuthology/task/ceph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index af691768df362..eaf5c761ab56e 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -296,7 +296,7 @@ def valgrind_post(ctx, config): valgrind_exception = None for (proc, remote) in lookup_procs: result = proc.exitstatus.get() - if result is not 1: + if result != 1: valgrind_exception = Exception("saw valgrind issues in {node}".format(node=remote.name)) if valgrind_exception is not None: @@ -792,7 +792,7 @@ def run_daemon(ctx, config, type): wait=False, ) - if type is 'mds': + if type == 'mds': firstmon = teuthology.get_first_mon(ctx, config) (mon0_remote,) = ctx.cluster.only(firstmon).remotes.keys() mon0_remote.run(args=[ -- 2.39.5