From e28ff0629d72d7d2abb06f99d6a2a93a0e37d732 Mon Sep 17 00:00:00 2001 From: Mohit Motiani Date: Tue, 2 Aug 2016 23:16:43 +0000 Subject: [PATCH] Add regions in ring-builder.py swift-ring-builder CLI usage does not specify about regions. This patch adds a description about it. It also adds a brief description of the flags (report parameter). Change-Id: If51a15c0904857abf62636b90ac0c7ed63300871 Closes-Bug: #1583551 --- swift/cli/ringbuilder.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/swift/cli/ringbuilder.py b/swift/cli/ringbuilder.py index 0c35553185..7e8e97d7bd 100644 --- a/swift/cli/ringbuilder.py +++ b/swift/cli/ringbuilder.py @@ -410,9 +410,12 @@ swift-ring-builder create def default(): """ swift-ring-builder - Shows information about the ring and the devices within. - Flags: - DEL - marked for removal and will be removed next rebalance. + Shows information about the ring and the devices within. Output + includes a table that describes the report parameters (id, region, + port, flags, etc). + flags: possible values are 'DEL' and '' + DEL - indicates that the device is marked for removal from + ring and will be removed in next rebalance. """ print('%s, build version %d' % (builder_file, builder.version)) regions = 0