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

Update of "Datadog::Dashboards::Dashboard" resource fails #127

Closed
rickard-andersson-wcar opened this issue Mar 22, 2021 · 2 comments · Fixed by #130
Closed

Update of "Datadog::Dashboards::Dashboard" resource fails #127

rickard-andersson-wcar opened this issue Mar 22, 2021 · 2 comments · Fixed by #130
Labels
kind/bug Bug related issue stale Stale - Bot reminder

Comments

@rickard-andersson-wcar
Copy link

rickard-andersson-wcar commented Mar 22, 2021

Describe the bug
We have a CloudFormation stack including one Datadog::Dashboards::Dashboard resource. When we first deploy the stack, the dashboard is created successfully. However, if we deploy the same stack again (even without any changes), the Datadog::Dashboards::Dashboard resource fails to update with error message: 'dict' object has no attribute '_composed_schemas'.

The resource we're trying to update:

OurDashboardResource:
    Type: Datadog::Dashboards::Dashboard
    Properties:
      DashboardDefinition: !Sub |
        {
          "title": "Title of Dashboard",
          "description": "",
          "widgets": [
            {
              "id": 12345,
              "definition": {
                ...definition of widget
              }
            }
          ],
          "template_variables": [],
          "layout_type": "ordered",
          "is_read_only": false,
          "notify_list": [],
          "id": "some-id"
        }
      DatadogCredentials:
        ApiKey: ##API-KEY##
        ApplicationKey: ##APPLICATION-KEY##
        ApiURL: https://api.datadoghq.eu

To Reproduce
Steps to reproduce the behavior:

  1. Export an existing dashboard as json and include it as DashboardDefinition of a Datadog::Dashboards::Dashboard resource (similar to above code example)
  2. Deploy the CloudFormation stack including the Datadog::Dashboards::Dashboard resource
  3. Note that the resource was created successfully
  4. Deploy the CloudFormation stack including the Datadog::Dashboards::Dashboard resource again
  5. Note that the dashboard resource (and stack) fails to update due to: 'dict' object has no attribute '_composed_schemas'.

Logs
'dict' object has no attribute '_composed_schemas'

Expected behavior
That the resource (and stack) updates successfully.

Environment and Versions (please complete the following information):
1.0.0

@github-actions
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.

@iwt-dennyschaefer
Copy link
Contributor

With the current released version (1.0.0), the above-mentioned behavior is still present!.

zippolyte pushed a commit that referenced this issue Jun 28, 2021
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

Successfully merging a pull request may close this issue.

2 participants