Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
uzaxirr committed Jun 27, 2024
1 parent ffa98c9 commit fc2ee8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion civo/network/resource_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,12 @@ func expandStringList(input interface{}) []string {
return result
}


func customizeDiffNetwork(ctx context.Context, d *schema.ResourceDiff, meta interface{}) error {
if d.Id() != "" && d.HasChange("cidr_v4") {
return fmt.Errorf("the 'cidr_v4' field is immutable")
}
return nil
}

// createDefaultFirewall function to create a default firewall
func createDefaultFirewall(apiClient *civogo.Client, networkID string, networkName string) error {
Expand Down

0 comments on commit fc2ee8f

Please sign in to comment.