Adding missing 'statistic' field to alarm-show
Closes-Bug: #1225049 Adding missing 'statistic field to printed table with alarm details Change-Id: I69a743bfa340d4e1193f58c84195db398cbdf02b
This commit is contained in:
committed by
Gerrit Code Review
parent
fd9eb2e237
commit
052f210f56
@@ -145,10 +145,11 @@ def do_alarm_list(cc, args={}):
|
|||||||
|
|
||||||
def _display_alarm(alarm):
|
def _display_alarm(alarm):
|
||||||
fields = ['name', 'description', 'meter_name', 'period',
|
fields = ['name', 'description', 'meter_name', 'period',
|
||||||
'evaluation_periods', 'threshold', 'comparison_operator',
|
'evaluation_periods', 'statistic', 'threshold',
|
||||||
'state', 'enabled', 'alarm_id', 'user_id', 'project_id',
|
'comparison_operator', 'state', 'enabled', 'alarm_id', 'user_id',
|
||||||
'alarm_actions', 'ok_actions', 'insufficient_data_actions',
|
'project_id', 'alarm_actions', 'ok_actions',
|
||||||
'repeat_actions', 'matching_metadata']
|
'insufficient_data_actions', 'repeat_actions',
|
||||||
|
'matching_metadata']
|
||||||
data = dict([(f, getattr(alarm, f, '')) for f in fields])
|
data = dict([(f, getattr(alarm, f, '')) for f in fields])
|
||||||
utils.print_dict(data, wrap=72)
|
utils.print_dict(data, wrap=72)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user