Skip to content

Commit

Permalink
Fixing the update-able resource fields for formal resource (#440)
Browse files Browse the repository at this point in the history
Seems to be referencing the old satellite resource field names- but this
prevents updating the formal resource via tf
  • Loading branch information
poojnagpal authored Jan 25, 2025
1 parent 2dfd908 commit 811122f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formal/resources/resource_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func resourceDatastoreUpdate(ctx context.Context, d *schema.ResourceData, meta i

// Only enable updates to these fields, err otherwise

fieldsThatCanChange := []string{"name", "health_check_db_name", "db_discovery_job_wait_time", "db_discovery_native_role_id", "termination_protection", "space_id"}
fieldsThatCanChange := []string{"name", "environment", "termination_protection", "space_id"}
if d.HasChangesExcept(fieldsThatCanChange...) {
err := fmt.Sprintf("At the moment you can only update the following fields: %s. If you'd like to update other fields, please message the Formal team and we're happy to help.", strings.Join(fieldsThatCanChange, ", "))
return diag.Errorf(err)
Expand Down

0 comments on commit 811122f

Please sign in to comment.