Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
fix: add custom requireReplace in doc generated (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
azrod authored Oct 2, 2023
1 parent e0f1a66 commit 7bd0021
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ func updatePlanModifierDescription[D planmodifier.Describer](ctx context.Context
case requireReplace:
description = addToDescription(forceNewDesc, description)

// Require replace with custom description
if !strings.Contains(toAdd, "Terraform will destroy and recreate the resource") {
description = addToDescription(description, toAdd)
}

case useStateForUnknown:
continue

Expand Down

0 comments on commit 7bd0021

Please sign in to comment.