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:
Bartosz Górski
2013-09-12 16:34:03 -07:00
committed by Gerrit Code Review
parent fd9eb2e237
commit 052f210f56

View File

@@ -145,10 +145,11 @@ def do_alarm_list(cc, args={}):
def _display_alarm(alarm):
fields = ['name', 'description', 'meter_name', 'period',
'evaluation_periods', 'threshold', 'comparison_operator',
'state', 'enabled', 'alarm_id', 'user_id', 'project_id',
'alarm_actions', 'ok_actions', 'insufficient_data_actions',
'repeat_actions', 'matching_metadata']
'evaluation_periods', 'statistic', 'threshold',
'comparison_operator', 'state', 'enabled', 'alarm_id', 'user_id',
'project_id', 'alarm_actions', 'ok_actions',
'insufficient_data_actions', 'repeat_actions',
'matching_metadata']
data = dict([(f, getattr(alarm, f, '')) for f in fields])
utils.print_dict(data, wrap=72)