Skip to content

Commit

Permalink
fix kusion resource state id of TF resources (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
markliby committed Dec 28, 2022
1 parent 3f5dd96 commit 1b87acb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/engine/runtime/terraform/terraform_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ func (t *TerraformRuntime) Apply(ctx context.Context, request *runtime.ApplyRequ

return &runtime.ApplyResponse{
Resource: &models.Resource{
ID: r.ID,
Type: r.Type,
ID: planState.ID,
Type: planState.Type,
Attributes: r.Attributes,
DependsOn: planState.DependsOn,
Extensions: planState.Extensions,
Expand Down Expand Up @@ -124,8 +124,8 @@ func (t *TerraformRuntime) Read(ctx context.Context, request *runtime.ReadReques
r := tfops.ConvertTFState(tfstate, providerAddr)
return &runtime.ReadResponse{
Resource: &models.Resource{
ID: r.ID,
Type: r.Type,
ID: planState.ID,
Type: planState.Type,
Attributes: r.Attributes,
DependsOn: planState.DependsOn,
Extensions: planState.Extensions,
Expand Down

0 comments on commit 1b87acb

Please sign in to comment.