Git Product home page Git Product logo

Comments (5)

bigdatasourav avatar bigdatasourav commented on August 19, 2024

@cbruno10, If we are running in a directory that does not contain tfplan.json, the GetSourceFiles function returns the above error, which comes from SDK. Should we handle the error and return an empty row?

from steampipe-plugin-terraform.

cbruno10 avatar cbruno10 commented on August 19, 2024

@bigdatasourav Do we have this issue in general across other plugins, i.e., if a user provides an exact filename in any file path config arg, we receive an error instead of an empty row? I think returning empty rows instead of erroring if the file(s) do not exist is better behaviour.

from steampipe-plugin-terraform.

bigdatasourav avatar bigdatasourav commented on August 19, 2024

@cbruno10, we get this error in general across other plugins wherever we have used the GetSourceFiles function. I have handled the error and added a fix for Terraform in this PR.

from steampipe-plugin-terraform.

cbruno10 avatar cbruno10 commented on August 19, 2024

@bigdatasourav Do other plugins currently crash when providing an exact filename that doesn't exist?

from steampipe-plugin-terraform.

bigdatasourav avatar bigdatasourav commented on August 19, 2024

Yes, @cbruno10, the other plugins wherever we have used the GetSourceFiles function crash if the filename does not exist, as we never handled the error.

from steampipe-plugin-terraform.

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.