Skip to content

Commit

Permalink
Fix duplicate parsers in dogshell (#760)
Browse files Browse the repository at this point in the history
This fixes dogshell in 3.11

Closes #746
  • Loading branch information
therve authored Mar 1, 2023
1 parent 48d7bae commit 7c44ceb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datadog/dogshell/dashboard_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def setup_parser(cls, subparsers):

# Delete Dashboards from Dashboard List parser
delete_dashboards_v2_parser = verb_parsers.add_parser(
"delete_dashboards", help="Delete dashboards from an existing dashboard list"
"delete_dashboards_v2", help="Delete dashboards from an existing dashboard list"
)
delete_dashboards_v2_parser.add_argument("dashboard_list_id", help="Dashboard list to delete dashboards from")
delete_dashboards_v2_parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion datadog/dogshell/service_level_objective.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def setup_parser(cls, subparsers):
delete_many_parser.add_argument("slo_ids", help="comma separated list of SLO IDs to delete", type=comma_set)
delete_many_parser.set_defaults(func=cls._delete_many)

delete_timeframe_parser = verb_parsers.add_parser("delete_many", help="Delete a SLO timeframe")
delete_timeframe_parser = verb_parsers.add_parser("delete_many_timeframe", help="Delete a SLO timeframe")
delete_timeframe_parser.add_argument("slo_id", help="SLO ID to update")
delete_timeframe_parser.add_argument(
"timeframes",
Expand Down

0 comments on commit 7c44ceb

Please sign in to comment.