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
This commit is contained in:
Mohit Motiani 2016-08-02 23:16:43 +00:00
parent d819ae00a5
commit e28ff0629d

View File

@ -410,9 +410,12 @@ swift-ring-builder <builder_file> create <part_power> <replicas>
def default():
"""
swift-ring-builder <builder_file>
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