Merge "Display min/max correctly from config-param-list"
This commit is contained in:
@@ -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
|
@@ -1369,8 +1369,12 @@ def do_configuration_parameter_list(cs, args):
|
|||||||
raise exceptions.NoUniqueMatch('The datastore name or id is required'
|
raise exceptions.NoUniqueMatch('The datastore name or id is required'
|
||||||
' to retrieve the parameters for the'
|
' to retrieve the parameters for the'
|
||||||
' configuration group by name.')
|
' configuration group by name.')
|
||||||
utils.print_list(params, ['name', 'type', 'min_size', 'max_size',
|
for param in params:
|
||||||
'restart_required'])
|
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>',
|
@utils.arg('configuration_group', metavar='<configuration_group>',
|
||||||
|
Reference in New Issue
Block a user