Skip to content

super_category attribute not being set in zia_url_categories resource #503

@ignacio-samsara

Description

@ignacio-samsara

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v1.13.5
on darwin_arm64
+ provider registry.terraform.io/zscaler/zia v4.6.4

Affected Resource(s)

  • zia_url_categories

Terraform Configuration Files

resource "zia_url_categories" "xxxx" {
  configured_name = "xxxxx"
  super_category  = "USER_DEFINED"
  type            = "URL_CATEGORY"
  custom_category = true
  urls            = [".example.com"]
}

Expected Behavior

Attribute super_category is set.

Actual Behavior

Despite a successful terraform apply, every time we run a terraform plan we get the following drift:

  # zia_url_categories.infosec_restricted will be updated in-place
  ~ resource "zia_url_categories" "infosec_restricted" {
        id                                        = "CUSTOM_19"
      + super_category                            = "USER_DEFINED"
        # (17 unchanged attributes hidden)
    }

Steps to Reproduce

  1. Create a custom zia_url_categories resource
  2. terraform apply
  3. terraform plan -> Drift should appear here

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions