Merge "check the alarm type when list alarm"

This commit is contained in:
Jenkins
2016-02-15 09:54:06 +00:00
committed by Gerrit Code Review

View File

@@ -40,7 +40,7 @@ class CliAlarmList(lister.Lister):
def get_parser(self, prog_name):
parser = super(CliAlarmList, self).get_parser(prog_name)
parser.add_argument('-t', '--type', required=True,
help='Type of alarm')
choices=ALARM_TYPES, help='Type of alarm')
return parser
def take_action(self, parsed_args):