site24x7 / terraform-provider-site24x7

Terraform provider for Site24x7
MIT License
22 stars 33 forks source link

inconsistent value for template_id #282

Open valugi opened 2 months ago

valugi commented 2 months ago

Hi, This is regarding notification_profile monitor, template_id attribute. https://registry.terraform.io/providers/site24x7/site24x7/latest/docs/resources/notification_profile#template_id

This is an optional attribute defined as string, though when let unset you are setting it to "0". An unset string should be "" or null, but for sure not 0 as string. If I do not set the default as "0" terraform plan will detect a change every time - which is false and annoying.

  # module.notification_profiles.site24x7_notification_profile.resource will be updated in-place
  ~ resource "site24x7_notification_profile" "resource" {
        id                             = "39662700001968xxx"
      - template_id                    = "0" -> null

Regards.