Skip to content

Commit

Permalink
Fix possible infinite recursion in TerraformImportCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
duckpuppy committed Jul 7, 2022
1 parent 20765fb commit 42eed27
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ build
.idea
*.iml
/out
.history
bin
.vscode
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Unreleased

- [Issue #439](https://github.com/manheim/terraform-pipeline/issues/439) Fix possible infinite recursion in TerraformImportCommand
- [Issue #432](https://github.com/manheim/terraform-pipeline/issues/432) pass TagPlugin through `-var-file={env}-tags.tfvars`
- [Issue #417](https://github.com/manheim/terraform-pipeline/issues/417) DestroyPlugin & PassPlanFilePlugin - Terraform Destroy can't be called with a plan file

Expand Down
6 changes: 3 additions & 3 deletions src/TerraformImportCommand.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TerraformImportCommand implements TerraformCommand, Resettable {
}

public String getTargetPath() {
return this.targetPath
return targetPath
}

public TerraformImportCommand withTargetPath(String targetPath) {
Expand All @@ -44,7 +44,7 @@ class TerraformImportCommand implements TerraformCommand, Resettable {
}

public String getResource() {
return this.resource
return resource
}

public static void reset() {
Expand Down Expand Up @@ -97,6 +97,6 @@ class TerraformImportCommand implements TerraformCommand, Resettable {
}

public String getEnvironment() {
return this.environment
return environment
}
}

0 comments on commit 42eed27

Please sign in to comment.