From d7873b5ce38afa252204c792afb65064e35c3bbf Mon Sep 17 00:00:00 2001 From: Sergey Kraynev Date: Thu, 11 Apr 2013 09:11:10 -0400 Subject: [PATCH] Correcting output of swift-ring-builder Indent swift-ring-builder output was changed according with old style (before implementation of region tier). Change-Id: I0d1cc7acdc5baf86f343745aea6fc2120838fd36 --- bin/swift-ring-builder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/swift-ring-builder b/bin/swift-ring-builder index f6ca672e10..2724d04dee 100755 --- a/bin/swift-ring-builder +++ b/bin/swift-ring-builder @@ -117,7 +117,7 @@ swift-ring-builder else: balance = 100.0 * dev['parts'] / \ (dev['weight'] * weighted_parts) - 100.0 - print(' %5d %5d %5d %15s %5d %9s %6.02f %10s' + print(' %5d %7d %5d %15s %5d %9s %6.02f %10s' '%7.02f %s' % (dev['id'], dev['region'], dev['zone'], dev['ip'], dev['port'], dev['device'], dev['weight'], dev['parts'], @@ -151,7 +151,7 @@ swift-ring-builder search else: balance = 100.0 * dev['parts'] / \ (dev['weight'] * weighted_parts) - 100.0 - print(' %5d %5d %5d %15s %5d %9s %6.02f %10s %7.02f %s' % + print(' %5d %7d %5d %15s %5d %9s %6.02f %10s %7.02f %s' % (dev['id'], dev['region'], dev['zone'], dev['ip'], dev['port'], dev['device'], dev['weight'], dev['parts'], balance, dev['meta']))