Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate parsers in dogshell #760

Merged
merged 1 commit into from
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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