]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: use the correct comparison operator
authorJosh Durgin <josh.durgin@dreamhost.com>
Thu, 2 Feb 2012 17:27:04 +0000 (09:27 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Thu, 2 Feb 2012 17:27:04 +0000 (09:27 -0800)
is compares identity (i.e. address in cpython), not value.

teuthology/task/ceph.py

index af691768df3626c6cabac425ea3947012d79311c..eaf5c761ab56e998da39f47ebb406b5f4d751cd5 100644 (file)
@@ -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=[