FusionAuth / terraform-provider-fusionauth

FusionAuth Terraform Provider
https://registry.terraform.io/providers/FusionAuth/fusionauth/latest
Apache License 2.0
36 stars 56 forks source link

Error: fusionauth_registration error when user dismisses license prompt #292

Open flelli opened 2 months ago

flelli commented 2 months ago

If a user dismisses the license prompt shown on the bottom left on the UI the fusionauth_registration resource raises an error when reading and unmarshalling the resource status. Ignoring change to the data attribute does not prevent the error.

Terraform error looks like:

Error: registration.data: data.preferences: '' expected type 'string', got unconvertible type 'map[string]interface {}', value: 'map[announcements:map[licenseCTA:dismissed]]'

  with module.FUSIONAUTH-CONFIGURATION.fusionauth_registration.user_application_registration,
  on users.tf line 92, in resource "fusionauth_registration" "user_application_registration":
  92: resource "fusionauth_registration" "user_application_registration" {