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
I believe this behavior is somewhat expected, we only want to manage the firewalls attached to the server if they are defined.
This is because we also manage firewall attachment using the hcloud_firewall_attachement resource, and it does not work well if the server removes the firewalls when firewall_ids is not defined.
We could check the previous state to detect that the attribute has been removed, but this might only be supported in the plugin framework. So we will probably tackle this once we migrated the firewall resources to the plugin framework (see #752).
What happened?
When an hcloud_server resource has firewall_ids set, and firewall_ids is later removed no changes are made.
Oddly, when firewall_ids is set to an empty array, firewalls are detached.
Ran with hcloud v1.48.1 on tofu 1.8.1
What did you expect to happen?
Removing the firewall_ids field should detach firewalls from the server.
Please provide a minimal working example
Example:
Plan & apply, then remove firewall_ids:
apply
will find no differences.The text was updated successfully, but these errors were encountered: