You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Removing attribute(setting it to null or empty string) from firewall rule definition does not remove the attribute and next terraform plan wants to make same changes.
To Reproduce
Steps to reproduce the behavior:
Create a resource proxmox_virtual_environment_firewall_rules
Run terraform apply
Remove one of the attributes from defined rule
Run terraform apply - it "successfully" removes the rule
Next terraform plan wants to remove it again
Please also provide a minimal Terraform configuration that reproduces the issue.
Expected behavior
Attributes removed from config should be removed from resource.
Screenshots
Additional context
I am suspecting this is due to provider not sending null parameters at all. Comparing GUI and provider actions suggests the same:
Provider:
tf_http_req_body="action=ACCEPT&comment=Allow+HTTP&dest=192.168.1.5&dport=80&enable=1&log=info&pos=0&proto=tcp&type=in"
Describe the bug
Removing attribute(setting it to null or empty string) from firewall rule definition does not remove the attribute and next terraform plan wants to make same changes.
To Reproduce
Steps to reproduce the behavior:
Please also provide a minimal Terraform configuration that reproduces the issue.
Before the change:
After the change:
Expected behavior
Attributes removed from config should be removed from resource.
Screenshots
Additional context
I am suspecting this is due to provider not sending null parameters at all. Comparing GUI and provider actions suggests the same:
Provider:
tf_http_req_body="action=ACCEPT&comment=Allow+HTTP&dest=192.168.1.5&dport=80&enable=1&log=info&pos=0&proto=tcp&type=in"
GUI:
type=in&action=ACCEPT&delete=iface&source=&dest=192.168.1.5&enable=1¯o=&proto=&sport=&dport=&comment=&log=info&icmp-type=&digest=0929e8b4b3604b3b14a620d53a5aa86f13c838e4
TF_LOG=DEBUG terraform apply
):https://gist.github.com/kbcz1989/78344a82c7a4ee29024b01033673c8df
The text was updated successfully, but these errors were encountered: