terraform-provider-prismacloudcompute icon indicating copy to clipboard operation
terraform-provider-prismacloudcompute copied to clipboard

State is not tracked properly when policy created with no rules

Open wfg opened this issue 3 years ago • 1 comments

│ Error: error setting rule for resource containerRuntime: Invalid address to set: []string{"rule", "0", "AntiMalware"}
│ 
│   with prismacloudcompute_container_runtime_policy.ruleset,
│   on main.tf line 1373, in resource "prismacloudcompute_container_runtime_policy" "ruleset":
│ 1373: resource "prismacloudcompute_container_runtime_policy" "ruleset" {
│ 

Reproduce:

  1. Have no rules in container runtime policy
  2. terraform apply
  3. Create rule in UI
  4. terraform apply

wfg avatar Sep 09 '21 01:09 wfg