From c06ecac5a408dfe0c970bd7ce7e13d13c39ee729 Mon Sep 17 00:00:00 2001 From: zheliu2 <770120041@qq.com> Date: Thu, 12 Mar 2026 14:46:42 -0400 Subject: [PATCH] Fix AttributeError in dogshell service_level_objective show command The `_show` method referenced `args.string_ids` which was never added as an argument to the `show` subparser, causing an AttributeError when running `dogshell service_level_objective show `. SLO IDs are already strings, so the string_ids conversion is not needed. Remove the dead code that referenced the missing attribute. Fixes #875 --- datadog/dogshell/service_level_objective.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/datadog/dogshell/service_level_objective.py b/datadog/dogshell/service_level_objective.py index 0b4cdf388..da51529f7 100644 --- a/datadog/dogshell/service_level_objective.py +++ b/datadog/dogshell/service_level_objective.py @@ -326,9 +326,6 @@ def _show(cls, args): report_warnings(res) report_errors(res) - if args.string_ids: - res["id"] = str(res["id"]) - if format == "pretty": print(pretty_json(res)) else: