Skip to content

Commit 42eed27

Browse files
committed
Fix possible infinite recursion in TerraformImportCommand
1 parent 20765fb commit 42eed27

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ build
55
.idea
66
*.iml
77
/out
8+
.history
9+
bin
10+
.vscode

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Unreleased
22

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

src/TerraformImportCommand.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class TerraformImportCommand implements TerraformCommand, Resettable {
3535
}
3636

3737
public String getTargetPath() {
38-
return this.targetPath
38+
return targetPath
3939
}
4040

4141
public TerraformImportCommand withTargetPath(String targetPath) {
@@ -44,7 +44,7 @@ class TerraformImportCommand implements TerraformCommand, Resettable {
4444
}
4545

4646
public String getResource() {
47-
return this.resource
47+
return resource
4848
}
4949

5050
public static void reset() {
@@ -97,6 +97,6 @@ class TerraformImportCommand implements TerraformCommand, Resettable {
9797
}
9898

9999
public String getEnvironment() {
100-
return this.environment
100+
return environment
101101
}
102102
}

0 commit comments

Comments
 (0)