Coder Social home page Coder Social logo

Comments (2)

 avatar commented on July 17, 2024

The schema.ResourceData isn't getting populated. Things are failing but errors are being silently ignored. In the resourceDatadogTimeboardRead function, the call to schema.ResourceData.Set fails but isn't caught. If I make the change to check errors, the failures are there and the errors vary with each run:

k@Thor ~/test> terraform import datadog_timeboard.my_timeboard 361820
datadog_timeboard.my_timeboard: Importing from ID "361820"...
Error importing: 1 error(s) occurred:

* datadog_timeboard.my_timeboard (import id: 361820): import datadog_timeboard.my_timeboard (id: 361820): Invalid address to set: []string{"graph", "0", "group"}
k@Thor ~/test [1]> terraform import datadog_timeboard.my_timeboard 361820
datadog_timeboard.my_timeboard: Importing from ID "361820"...
Error importing: 1 error(s) occurred:

* datadog_timeboard.my_timeboard (import id: 361820): import datadog_timeboard.my_timeboard (id: 361820): Invalid address to set: []string{"graph", "0", "events"}
k@Thor ~/test [1]> terraform import datadog_timeboard.my_timeboard 361820
datadog_timeboard.my_timeboard: Importing from ID "361820"...
Error importing: 1 error(s) occurred:

* datadog_timeboard.my_timeboard (import id: 361820): import datadog_timeboard.my_timeboard (id: 361820): graph.0.include_ungrouped_hosts: '' expected type 'bool', got unconvertible type '*bool'

My guess is that it has to do with the refactor of the client library to generate its accessor methods and move to pointers for all the fields coupled with Terraform's use of the reflect library to anticipate a need for dereference.

The solution isn't immediately obvious to me but I can take another look at it in a while.

from terraform-provider-datadog.

nyanshak avatar nyanshak commented on July 17, 2024

I believe this was fixed in #27. Can close this once it gets added to a release.

from terraform-provider-datadog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.