fix help message of deprecated command
Adds command name instead of deprecated command to help message. Change-Id: Ib6cbbcd24bbf015cf3656be9cbdf7de25d4d9cf7
This commit is contained in:
@@ -317,7 +317,7 @@ def common_alarm_arguments(create=False):
|
||||
help=('True if actions should be repeatedly notified '
|
||||
'while alarm remains in target state'))
|
||||
def do_alarm_create(cc, args={}):
|
||||
'''Create a new alarm (Deprecated).'''
|
||||
'''Create a new alarm (Deprecated). Use alarm-threshold-create instead.'''
|
||||
fields = dict(filter(lambda x: not (x[1] is None), vars(args).items()))
|
||||
fields = utils.args_array_to_dict(fields, "matching_metadata")
|
||||
alarm = cc.alarms.create(**fields)
|
||||
|
||||
Reference in New Issue
Block a user