Skip to content

Commit

Permalink
fix: invalid dir when deleting tf resources (#1161)
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkYuan committed Jun 12, 2024
1 parent 71c91ed commit 982e263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/engine/runtime/terraform/terraform_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func (t *TerraformRuntime) Import(ctx context.Context, request *runtime.ImportRe
// Delete terraform resource and remove workspace
func (t *TerraformRuntime) Delete(ctx context.Context, request *runtime.DeleteRequest) (res *runtime.DeleteResponse) {
stackPath := request.Stack.Path
tfCacheDir := filepath.Join(stackPath, "."+request.Resource.ResourceKey())
tfCacheDir := buildTFCacheDir(stackPath, request.Resource.ResourceKey())
t.mu.Lock()
defer t.mu.Unlock()

Expand Down

0 comments on commit 982e263

Please sign in to comment.