From 8c6961f011e59559aaed7cef6f489a5679729c11 Mon Sep 17 00:00:00 2001 From: Graham Hughes Date: Tue, 18 Jul 2023 11:48:52 -0500 Subject: [PATCH] Make it possible to post related events The current version of `dogshell` interprets `--related_event_id` as a string, not an integer, which means the backend refuses to work with it. The fix is simple; to tell argparse that it's an int. --- datadog/dogshell/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datadog/dogshell/event.py b/datadog/dogshell/event.py index 89d68a60c..d0fd0ea41 100644 --- a/datadog/dogshell/event.py +++ b/datadog/dogshell/event.py @@ -81,7 +81,7 @@ def setup_parser(cls, subparsers): post_parser.add_argument("--handle", help="user to post as. if unset, submits " "as the generic API user.") post_parser.add_argument("--priority", help='"normal" or "low". defaults to "normal"', default="normal") post_parser.add_argument( - "--related_event_id", help="event to post as a child of." " if unset, posts a top-level event" + "--related_event_id", help="event to post as a child of." " if unset, posts a top-level event", type=int ) post_parser.add_argument("--tags", help="comma separated list of tags") post_parser.add_argument("--host", help="related host (default to the local host name)", default="")