Deprecate 'alarm-update'

Like deprecating alarm-create, we can use alarm-threshold-update and
alarm-combination-update instead of alarm-update.
So, mark alarm-update as 'Deprecated'.

Change-Id: I8c9718d76e40729dc6094611a055c904e27619ba
This commit is contained in:
liu-sheng
2014-03-13 15:40:12 +08:00
parent 3e8045c9ca
commit 6c5f672e2e

View File

@@ -413,7 +413,7 @@ def do_alarm_combination_create(cc, args={}):
help=('True if actions should be repeatedly notified '
'while alarm remains in target state.'))
def do_alarm_update(cc, args={}):
'''Update an existing alarm.'''
'''Update an existing alarm (Deprecated).'''
fields = dict(filter(lambda x: not (x[1] is None), vars(args).items()))
fields = utils.args_array_to_dict(fields, "matching_metadata")
fields.pop('alarm_id')