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

TerraformImportCommand may enter an infinite loop #439

Open
duckpuppy opened this issue Jul 5, 2022 · 0 comments · May be fixed by #440
Open

TerraformImportCommand may enter an infinite loop #439

duckpuppy opened this issue Jul 5, 2022 · 0 comments · May be fixed by #440

Comments

@duckpuppy
Copy link
Contributor

When using the TerraformImportPlugin, you may see an error similar to the following:

java.lang.StackOverflowError: Excessively nested closures/functions at TerraformImportCommand.getResource(TerraformImportCommand.groovy:46) - look for unbounded recursion - call depth: 1025

The code in question is a simple method

    public String getResource() {
        return this.resource
    }

It's possible that the this. indirection in the return statement is causing a recursive call to getResouce() in some cases.

@duckpuppy duckpuppy linked a pull request Jul 7, 2022 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant