Skip to content

Commit

Permalink
allow using dashes in contact types
Browse files Browse the repository at this point in the history
  • Loading branch information
matyasselmeci committed Jan 19, 2024
1 parent fcd017c commit 0d32dec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/osg-notify
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def parseargs():
if args.name_filter and args.fqdn_filter:
oparser.error("Can't specify both --oim-name-filter and --oim-fqdn-filter")

args.contact_type = [x.replace("-", " ") for x in args.contact_type]
if not args.contact_type or ("all" in args.contact_type):
args.contact_type = ["all"]
args.contact_type = set(args.contact_type) # remove dupes
Expand Down
4 changes: 3 additions & 1 deletion src/topology_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"submitter",
"site",
"local operational",
"local security"]
"local security",
"local-operational",
"local-security"]

class Error(Exception):
pass
Expand Down

0 comments on commit 0d32dec

Please sign in to comment.