diff --git a/swift/cli/manage_shard_ranges.py b/swift/cli/manage_shard_ranges.py index 6e48084e5b..591b46ac1c 100644 --- a/swift/cli/manage_shard_ranges.py +++ b/swift/cli/manage_shard_ranges.py @@ -524,6 +524,8 @@ def compact_shard_ranges(broker, args): _print_shard_range(donor, level=1) print('can be compacted into acceptor shard range:') _print_shard_range(acceptor, level=1) + print('Total of %d shard sequences identified for compaction.' + % len(compactible)) print('Once applied to the broker these changes will result in shard ' 'range compaction the next time the sharder runs.') diff --git a/test/unit/cli/test_manage_shard_ranges.py b/test/unit/cli/test_manage_shard_ranges.py index d6a646e9ab..47a83277ce 100644 --- a/test/unit/cli/test_manage_shard_ranges.py +++ b/test/unit/cli/test_manage_shard_ranges.py @@ -894,6 +894,7 @@ class TestManageShardRanges(unittest.TestCase): " '.shards_a", " objects: 100001, tombstones: 999, lower: 'obj79'", " state: active, upper: 'obj89'", + 'Total of 2 shard sequences identified for compaction.', 'Once applied to the broker these changes will result in ' 'shard range compaction the next time the sharder runs.', ]