Skip to content

Commit

Permalink
Replace the firewall if network id changes (#108)
Browse files Browse the repository at this point in the history
As there doesn't appear to be a documented way to update `network_id`,
replace the firewall if the network id changes
  • Loading branch information
willthames committed Nov 16, 2021
1 parent 57c8e8d commit d403ed1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions civo/resource_firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ func resourceFirewall() *schema.Resource {
Optional: true,
Description: "The firewall region, if is not defined we use the global defined in the provider",
},
// As the backend has no support for updating network ID we replace it if the
// network_id changes
"network_id": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Description: "The firewall network, if is not defined we use the default network",
},
},
Expand Down

0 comments on commit d403ed1

Please sign in to comment.