terraform-provider-citrixadc
terraform-provider-citrixadc copied to clipboard
[Bug]: Renaming a citrixadc_systemcmdpolicy used by a citrixadc_systemgroup leads to an "inconsistent final plan" error
Terraform Core Version
1.7.2
citrixadc Provider Version
1.39.0
Operating system
RHEL9
Affected Resource(s)
- citrixadc_systemcmdpolicy
- citrixadc_systemgroup
Equivalent NetScaler CLI Command
set system cmdPolicy policyName "other-name"
Expected Behavior
The cmdPolicy name is updated, and the system-group link is updated.
Actual Behavior
Terraform returns the following error:
│ Error: Provider produced inconsistent final plan
│
│ When expanding the plan for citrixadc_systemgroup.adm_itop to include new values learned so far during apply, provider
│ "registry.opentofu.org/citrix/citrixadc" produced an invalid new value for .cmdpolicybinding: planned set element
│ cty.ObjectVal(map[string]cty.Value{"policyname":cty.StringVal("itop-operator"), "priority":cty.NumberIntVal(100)}) does not correlate with any element in
│ actual.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
resource "citrixadc_systemcmdpolicy" "itop_operator" {
policyname = "itop_operator"
action = "ALLOW"
cmdspec = "(^man.*)|(^show\\s+(?!configstatus)(?!ns ns\\.conf)(?!ns savedconfig)(?!ns runningConfig)(?!gslb runningConfig)(?!audit messages)(?!techsupport).*)|(^stat.*)|(^(enable|disable) (server|service).*)|(^save ns config)"
}
resource "citrixadc_systemgroup" "adm_itop" {
groupname = "adm_itop"
timeout = "7200"
cmdpolicybinding {
policyname = citrixadc_systemcmdpolicy.itop_operator.policyname
priority = 100
}
}
Steps to Reproduce
Update the citrixadc_systemcmdpolicy
's policyname
, and apply the configuration
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response