Skip to content

Commit

Permalink
linting review
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreln-dd committed Jan 10, 2024
1 parent 34b041c commit 017cdb9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions datadog/dogshell/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def _post(cls, args):
tags = sorted(set([t.strip() for t in args.tags.split(",") if t.strip()]))
else:
tags = None

if args.restricted_roles:
restricted_roles = sorted(set([rr.strip() for rr in args.restricted_roles.split(",") if rr.strip()]))
else:
Expand Down Expand Up @@ -456,8 +456,13 @@ def _validate(cls, args):
restricted_roles = None

res = api.Monitor.validate(
type=args.type, query=args.query, name=args.name, message=args.message, tags=tags,
restricted_roles=restricted_roles, options=options
type=args.type,
query=args.query,
name=args.name,
message=args.message,
tags=tags,
restricted_roles=restricted_roles,
options=options
)
# report_warnings(res)
# report_errors(res)
Expand Down

0 comments on commit 017cdb9

Please sign in to comment.