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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user