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

Error when checking status of CAD dashboard with no cid_version #834

Open
dnmll opened this issue Jun 12, 2024 · 0 comments
Open

Error when checking status of CAD dashboard with no cid_version #834

dnmll opened this issue Jun 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dnmll
Copy link
Contributor

dnmll commented Jun 12, 2024

When checking the status of Cost Anomaly Dashboard an error occurs. Looks to be due to cid_version not being set on the dashboard. This error prevents the rest of the feature from showing the options to refresh the datasets.

cid-cmd status --dashboard-id aws-cost-anomalies

Dashboard status:
  Id:        aws-cost-anomalies
  Name:      AWS Cost Anomalies
  Health:    healthy
  Status:    up to date
Traceback (most recent call last):
  File "/Users/dnmll/.pyenv/versions/3.11.8/bin/cid-cmd", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/dnmll/.pyenv/versions/3.11.8/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dnmll/.pyenv/versions/3.11.8/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/dnmll/.pyenv/versions/3.11.8/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dnmll/.pyenv/versions/3.11.8/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dnmll/.pyenv/versions/3.11.8/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dnmll/.pyenv/versions/3.11.8/lib/python3.11/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dnmll/.pyenv/versions/3.11.8/lib/python3.11/site-packages/cid/cli.py", line 35, in wrapper
    res = func(ctx, **kwargs)
          ^^^^^^^^^^^^^^^^^^^
  File "/Users/dnmll/.pyenv/versions/3.11.8/lib/python3.11/site-packages/cid/cli.py", line 173, in status
    ctx.obj.status(dashboard_id, **kwargs)
  File "/Users/dnmll/.pyenv/versions/3.11.8/lib/python3.11/site-packages/cid/common.py", line 169, in wrap
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dnmll/.pyenv/versions/3.11.8/lib/python3.11/site-packages/cid/common.py", line 651, in status
    dashboard.display_status()
  File "/Users/dnmll/.pyenv/versions/3.11.8/lib/python3.11/site-packages/cid/helpers/quicksight/dashboard.py", line 119, in display_status
    cid_version = self.deployedTemplate.cid_version
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'cid_version'
@dnmll dnmll added the bug Something isn't working label Jun 12, 2024
@dnmll dnmll self-assigned this Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant