From 9ca78f4e88d6ae3a7d599f1117481a1ce83439bb Mon Sep 17 00:00:00 2001 From: Andrei Lukyanchyk Date: Mon, 27 Nov 2023 09:32:58 +0100 Subject: [PATCH] CDM-285: remove the omitempty attr from the SecondaryHostnames field to allow set empty array from Terraform --- resources/resources.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/resources.go b/resources/resources.go index c1a6b90..2b720eb 100644 --- a/resources/resources.go +++ b/resources/resources.go @@ -49,7 +49,7 @@ type UpdateRequest struct { Active bool `json:"active"` OriginGroup int `json:"originGroup"` OriginProtocol Protocol `json:"originProtocol,omitempty"` - SecondaryHostnames []string `json:"secondaryHostnames,omitempty"` + SecondaryHostnames []string `json:"secondaryHostnames"` SSlEnabled bool `json:"sslEnabled"` SSLData int `json:"sslData,omitempty"` SSLAutomated bool `json:"ssl_automated"`