]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
squash: use != not is not in radosbench
authorSamuel Just <sjust@redhat.com>
Mon, 4 May 2015 21:22:59 +0000 (14:22 -0700)
committerLoic Dachary <ldachary@redhat.com>
Wed, 6 May 2015 16:59:12 +0000 (18:59 +0200)
(cherry picked from commit 91bc0e91864903f6635879432e6dc7a0b36c76c2)

tasks/radosbench.py

index 29ec881e1774e5b6807be693ceb857becc98c694..af976fd557a316c034f3fbb7f6e5e4735ca036bc 100644 (file)
@@ -64,7 +64,7 @@ def task(ctx, config):
         if config.get('create_pool', True):
             if config.get('pool'):
                 pool = config.get('pool')
-                if pool is not 'data':
+                if pool != 'data':
                     ctx.manager.create_pool(pool, erasure_code_profile_name=profile_name)
             else:
                 pool = ctx.manager.create_pool_with_unique_name(erasure_code_profile_name=profile_name)