From 23669be9af077482adf63276a6faaef563136fb5 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Thu, 21 Feb 2013 14:37:32 -0800 Subject: [PATCH] radosgw-admin: fix errors found by pyflakes Using the wrong variable, and true/false are capitalized in python. Signed-off-by: Josh Durgin --- teuthology/task/radosgw-admin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/teuthology/task/radosgw-admin.py b/teuthology/task/radosgw-admin.py index 690d0ef662..75d42369b5 100644 --- a/teuthology/task/radosgw-admin.py +++ b/teuthology/task/radosgw-admin.py @@ -305,13 +305,13 @@ def task(ctx, config): assert not err # try creating an object with the first user before the bucket is relinked - denied = false + denied = False key = boto.s3.key.Key(bucket) try: key.set_contents_from_string('two') except boto.exception.S3ResponseError: - denied = true + denied = True assert not denied @@ -328,7 +328,7 @@ def task(ctx, config): try: key.set_contents_from_string('three') except boto.exception.S3ResponseError: - denied = true + denied = True assert denied @@ -573,7 +573,7 @@ def task(ctx, config): # TESTCASE 'pool-add', 'pool', 'add', 'make default pool available', 'succeeds' (err, out) = rgwadmin(ctx, client, ['pool', 'add', '--pool', default_pool]) - assert out['name'] == default_pool_name + assert out['name'] == default_pool # TESTCASE 'cluster-info', 'cluster', 'info', 'get cluser info', 'succeeds' (err, out) = rgwadmin(ctx, client, ['cluster', 'info']) -- 2.39.5