Skip to content

Commit

Permalink
r/aws_bedrockagent_agent: Always set 'agent_version' in Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Apr 18, 2024
1 parent c93c784 commit 98313e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/service/bedrockagent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ func (r *agentResource) Update(ctx context.Context, request resource.UpdateReque
if response.Diagnostics.HasError() {
return
}
} else {
new.AgentVersion = old.AgentVersion
}

response.Diagnostics.Append(response.State.Set(ctx, &new)...)
Expand Down

0 comments on commit 98313e6

Please sign in to comment.