Skip to content

Commit

Permalink
forceNew on diskImg
Browse files Browse the repository at this point in the history
  • Loading branch information
uzaxirr committed Jun 18, 2024
1 parent 6db4806 commit 76c9a41
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions civo/instances/resource_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ func ResourceInstance() *schema.Resource {
Computed: true,
ExactlyOneOf: []string{"template", "disk_image"},
Description: "The ID for the disk image to use to build the instance",
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
// Suppress changes if the old value is non-empty and different from the new value
return old != "" && old != new
},
ForceNew: true,
},
"initial_user": {
Type: schema.TypeString,
Expand Down

0 comments on commit 76c9a41

Please sign in to comment.