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

CLI service_level_objective show fails with 'Namespace' object has no attribute 'string_ids' #875

Open
huyhua-nvg opened this issue Dec 17, 2024 · 1 comment
Labels
kind/bug Bug related issue stale Stale - Bot reminder

Comments

@huyhua-nvg
Copy link

huyhua-nvg commented Dec 17, 2024

Describe the bug
cli service_level_objective show does not work.

To Reproduce
Steps to reproduce the behavior:

  1. Use the cli tool with dogshell service_level_objective show <slo_id>
  2. Error shown:
Traceback (most recent call last):
  File "/Users/user/.pyenv/versions/3.11.10/bin/dogshell", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/user/.pyenv/versions/3.11.10/lib/python3.11/site-packages/datadog/dogshell/__init__.py", line 109, in main
    args.func(args)
  File "/Users/user/.pyenv/versions/3.11.10/lib/python3.11/site-packages/datadog/dogshell/service_level_objective.py", line 326, in _show
    if args.string_ids:
       ^^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'string_ids'

Expected behavior
the SLO with correct id is displayed.

Screenshots
If applicable, add screenshots to help explain your problem.
Image

Environment and Versions (please complete the following information):
A clear and precise description of your setup:

  • dogshell v0.50.2
  • python v3.11

Additional context
Removing the lines below will fix the issue:

if args.string_ids:
res["id"] = str(res["id"])

@huyhua-nvg huyhua-nvg added the kind/bug Bug related issue label Dec 17, 2024
Copy link

Thanks for your contribution!

This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.

If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of this project.

  2. Comment that the issue is still reproducible and include updated details requested in the issue template.

@github-actions github-actions bot added the stale Stale - Bot reminder label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Bug related issue stale Stale - Bot reminder
Projects
None yet
Development

No branches or pull requests

1 participant