citrix / terraform-provider-citrixadc

Part of NetScaler Automation Toolkit | https://github.com/netscaler/automation-toolkit
https://registry.terraform.io/providers/citrix/citrixadc
Apache License 2.0
119 stars 59 forks source link

[Bug]: Not able to delete `citrixadc_dnssrvrec` resource, and import fails for some attributes #1157

Closed rohit-myali closed 6 months ago

rohit-myali commented 6 months ago

Terraform Core Version

terraform --version Terraform v1.7.4

citrixadc Provider Version

1.38.0

Operating system

MacOS

Affected Resource(s)

Equivalent NetScaler CLI Command

rm dnssrvRec example.com sdf.crd

Expected Behavior

The resource is being created but it doesn't get destroyed, it says destroyed, but it is still present in the NetScaler CLI.

Actual Behavior

It should get destroyed as soon as we destroy command is executed.

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "citrixadc_dnssrvrec" "dnssrvrec" {
  domain   = "example.com"
  target   = "_sip._udp.example.com"
  priority = 1
  weight   = 1
  port     = 22
  ttl      = 3600
}

Steps to Reproduce

Apply the configuration, and then destroy. SSH into the NetScaler CLI and check for the resource and it will be still be present.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response