Skip to content

Commit

Permalink
internal/toproto6: Fix variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
bflad committed Feb 5, 2024
1 parent 67e1ae8 commit 46a1487
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/toproto6/moveresourcestate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ func MoveResourceStateResponse(ctx context.Context, fw *fwserver.MoveResourceSta
return nil
}

proto5 := &tfprotov6.MoveResourceStateResponse{
proto6 := &tfprotov6.MoveResourceStateResponse{
Diagnostics: Diagnostics(ctx, fw.Diagnostics),
}

targetPrivate, diags := fw.TargetPrivate.Bytes(ctx)

proto5.Diagnostics = append(proto5.Diagnostics, Diagnostics(ctx, diags)...)
proto5.TargetPrivate = targetPrivate
proto6.Diagnostics = append(proto6.Diagnostics, Diagnostics(ctx, diags)...)
proto6.TargetPrivate = targetPrivate

targetState, diags := State(ctx, fw.TargetState)

proto5.Diagnostics = append(proto5.Diagnostics, Diagnostics(ctx, diags)...)
proto5.TargetState = targetState
proto6.Diagnostics = append(proto6.Diagnostics, Diagnostics(ctx, diags)...)
proto6.TargetState = targetState

return proto5
return proto6
}

0 comments on commit 46a1487

Please sign in to comment.