I put in my terraform provider code in function update for each resource attribute:
if d.HasChange("description") {
description := d.Get("description").(string)
params.Description = description
}
But when the specified attribute (here description) is removed from the tf code, it seems that the HasChange function is not returning true, is-it correct ?
The following problems may be the cause of any confusing errors from downstream operations:
- .description: was null, but now cty.StringVal("IP created by terraform")
This probably means that there was no description stored in state. At least I see this message in current version of GitLab provider, where d.Set for some fields is called in Read call after Create.