Merge "Display min/max correctly from config-param-list"

This commit is contained in:
Jenkins
2016-05-13 10:04:11 +00:00
committed by Gerrit Code Review
2 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
fixes:
- The CLI output from configuration-parameter-list
was fixed to properly display the 'Min Size' and
'Max Size' values. Bug 1572272

View File

@@ -1369,8 +1369,12 @@ def do_configuration_parameter_list(cs, args):
raise exceptions.NoUniqueMatch('The datastore name or id is required'
' to retrieve the parameters for the'
' configuration group by name.')
utils.print_list(params, ['name', 'type', 'min_size', 'max_size',
'restart_required'])
for param in params:
setattr(param, 'min', getattr(param, 'min', '-'))
setattr(param, 'max', getattr(param, 'max', '-'))
utils.print_list(
params, ['name', 'type', 'min', 'max', 'restart_required'],
labels={'min': 'Min Size', 'max': 'Max Size'})
@utils.arg('configuration_group', metavar='<configuration_group>',