From ad28cdd9d5a2ee0bfb945e26b296ab38f58635c6 Mon Sep 17 00:00:00 2001 From: Les Aker Date: Tue, 25 Jul 2023 21:14:36 -0400 Subject: [PATCH] add default for agg --- internal/provider/resource_device.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/provider/resource_device.go b/internal/provider/resource_device.go index 32eb09714..91cbb2184 100644 --- a/internal/provider/resource_device.go +++ b/internal/provider/resource_device.go @@ -103,6 +103,7 @@ func resourceDevice() *schema.Resource { Type: schema.TypeInt, Optional: true, ValidateFunc: validation.IntBetween(2, 8), + Default: 0, DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { if old == strconv.Itoa(0) && new == "" { return true