CiscoISE / terraform-provider-ciscoise

Terraform Provider for Cisco ISE
https://registry.terraform.io/providers/CiscoISE/ciscoise/latest/docs
MIT License
9 stars 4 forks source link

Resource ciscoise_network_access_authorization_rules wrong state handling #76

Closed mschedrin closed 1 year ago

mschedrin commented 1 year ago

Prerequisites

Describe the bug State of policy_id parameter is not properly handled by the provider. Terraform suggests updating resource every time I run terraform plan/apply even though there are no changes it suggests following:

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # ciscoise_network_access_authorization_rules.this["APs"] will be updated in-place
  ~ resource "ciscoise_network_access_authorization_rules" "this" {
        id           = "id:=f5a065e3-dc10-4e33-a334-97e25a746838\\name:=APs\\policy_id:=ac8db424-5856-468f-a93e-b913d6e8d57a"
        # (2 unchanged attributes hidden)

      ~ parameters {
          + policy_id      = "ac8db424-5856-468f-a93e-b913d6e8d57a"
            # (3 unchanged attributes hidden)

            # (1 unchanged block hidden)
        }
    }

Plan: 0 to add, 1 to change, 0 to destroy.
ciscoise_network_access_authorization_rules.this["APs"]: Modifying... [id=id:=f5a065e3-dc10-4e33-a334-97e25a746838\name:=APs\policy_id:=ac8db424-5856-468f-a93e-b913d6e8d57a]
ciscoise_network_access_authorization_rules.this["APs"]: Modifications complete after 1s [id=id:=f5a065e3-dc10-4e33-a334-97e25a746838\name:=APs\policy_id:=ac8db424-5856-468f-a93e-b913d6e8d57a]

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

Expected behavior Resource ciscoise_network_access_authorization_rules should not suggest adding policy_id parameter every time terraform plan/apply runs.

Screenshots Not relevant.

Environment (please complete the following information):

Additional context None

fmunozmiranda commented 1 year ago

Hey @mschedrin , there's a new version (0.6.12-beta) of provider, please try it again and let us know if it works now.

mschedrin commented 1 year ago

Works as expected, thank you.