From 3bd387f9e8f9e5d77e67a0442fa7601a0a927824 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 14 Jun 2012 14:03:39 -0700 Subject: [PATCH] radosgw-admin: fix for non-numeric bucket ids --- teuthology/task/radosgw-admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/task/radosgw-admin.py b/teuthology/task/radosgw-admin.py index 98e56f77508..3580a66acb6 100644 --- a/teuthology/task/radosgw-admin.py +++ b/teuthology/task/radosgw-admin.py @@ -269,7 +269,7 @@ def task(ctx, config): # TESTCASE 'bucket-stats5','bucket','stats','after creating key','succeeds, lists one non-empty object' (err, out) = rgwadmin(ctx, client, [ - 'bucket', 'stats', '--bucket-id', '%d' % bucket_id]) + 'bucket', 'stats', '--bucket-id', bucket_id]) assert not err assert out['id'] == bucket_id assert out['usage']['rgw.main']['num_objects'] == 1 @@ -280,7 +280,7 @@ def task(ctx, config): # TESTCASE 'bucket-stats6','bucket','stats','after deleting key','succeeds, lists one no objects' (err, out) = rgwadmin(ctx, client, [ - 'bucket', 'stats', '--bucket-id', '%d' % bucket_id]) + 'bucket', 'stats', '--bucket-id', bucket_id]) assert not err assert out['id'] == bucket_id assert out['usage']['rgw.main']['num_objects'] == 0