fix help message of deprecated command

Adds command name instead of deprecated command to help message.

Change-Id: Ib6cbbcd24bbf015cf3656be9cbdf7de25d4d9cf7
This commit is contained in:
fujioka yuuichi
2014-02-10 10:54:34 +09:00
parent 3f289a1dd9
commit 47ef2a95b8

View File

@@ -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)