Commit 8404bad2 authored by Olav Morken's avatar Olav Morken

get-triggers Fix KeyError if severity isn't specified.

parent 922b632f
......@@ -344,7 +344,7 @@ def parse_args():
find_empty = subparsers.add_parser('find-empty', help="Find empty host groups")
triggers = subparsers.add_parser('get-triggers', help="List triggers")
triggers.add_argument('--severity', choices=SEVERITIES.keys(), help="Minimum severity to include")
triggers.add_argument('--severity', choices=SEVERITIES.keys(), default='not_classified', help="Minimum severity to include")
find_dead_trapper_items = subparsers.add_parser('find-dead-trapper-items', help="Find trapper items no longer receiving data")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment