Git Product home page Git Product logo

Comments (3)

svanharmelen avatar svanharmelen commented on August 14, 2024

As discussed on Slack, I don’t think this is something that should be added to the go-cloudstack package. Instead I think you should create this logic in the data resource itself.

So just do a list of all templates and then search true them matching the names against the regex and maybe using the create date to determine which is the latest version.

I'll close this issue now since we discussed the options. Feel free to reopen or ping me again on Slack if you have further questions. Looking forward to the PR for adding this support πŸ˜‰

from terraform-provider-cloudstack.

mcanevet avatar mcanevet commented on August 14, 2024

@svanharmelen as this is the very first datasource for this provider I'll not be able to use my usual Copy Paste Replace Driven Development :-)
I'll try to figure out how to do it but it would take me a lot a time.
Do you have the skills (and time) to it quickly (at least some skeleton)?

from terraform-provider-cloudstack.

svanharmelen avatar svanharmelen commented on August 14, 2024

Would be easy enough I think, but I don't have time today... Maybe next week I can whip something up, but no promises whatsoever!

You could also check out some of the data resources of other providers. They could be a good starting point I guess.

If you create a first WIP PR, we can take it from there I guess.

from terraform-provider-cloudstack.

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.