Skip to content

Commit

Permalink
refactor: apply pr feedback accumulate diags
Browse files Browse the repository at this point in the history
  • Loading branch information
gersonsosa committed Nov 28, 2024
1 parent 5577f7a commit 3e63619
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ func (m useStateForUnknownUnlessMigrationIsRequired) UseState(ctx context.Contex
var diags diag.Diagnostics

var parentResState attr.Value
diag := state.GetAttribute(ctx, path.Root(m.resourceKind), &parentResState)
diags.Append(diag...)
diags.Append(state.GetAttribute(ctx, path.Root(m.resourceKind), &parentResState)...)

resourceIsBeingCreated := parentResState.IsNull()

Expand Down

0 comments on commit 3e63619

Please sign in to comment.