@@ -120,6 +120,9 @@ func resourceFortiadcLoadbalanceVirtualServerCreate(d *schema.ResourceData, m in
120120 if d .Get ("http_to_https" ).(bool ) {
121121 http2https = "enable"
122122 }
123+ if len (d .Get ("client_ssl_profile" ).(string )) == 0 {
124+ http2https = ""
125+ }
123126
124127 req := gofortiadc.LoadbalanceVirtualServerReq {
125128 Status : d .Get ("status" ).(string ),
@@ -130,14 +133,12 @@ func resourceFortiadcLoadbalanceVirtualServerCreate(d *schema.ResourceData, m in
130133 PacketFwdMethod : d .Get ("packet_forward_method" ).(string ),
131134 SrcPool : d .Get ("nat_source_pool" ).(string ),
132135 Port : fmt .Sprintf ("%d" , d .Get ("port" ).(int )),
133- PortRange : "0" ,
134136 ConnectionLimit : fmt .Sprintf ("%d" , d .Get ("connection_limit" ).(int )),
135137 ContentRouting : contentRouting ,
136138 ContentRewriting : "disable" ,
137139 Warmup : "0" ,
138140 Warmrate : "10" ,
139141 ConnectionRateLimit : fmt .Sprintf ("%d" , d .Get ("connection_rate_limit" ).(int )),
140- Log : "disable" ,
141142 Alone : "enable" ,
142143 Mkey : d .Get ("name" ).(string ),
143144 Interface : d .Get ("interface" ).(string ),
@@ -227,6 +228,9 @@ func resourceFortiadcLoadbalanceVirtualServerUpdate(d *schema.ResourceData, m in
227228 if d .Get ("http_to_https" ).(bool ) {
228229 http2https = "enable"
229230 }
231+ if len (d .Get ("client_ssl_profile" ).(string )) == 0 {
232+ http2https = ""
233+ }
230234
231235 req := gofortiadc.LoadbalanceVirtualServerReq {
232236 Status : d .Get ("status" ).(string ),
@@ -237,14 +241,12 @@ func resourceFortiadcLoadbalanceVirtualServerUpdate(d *schema.ResourceData, m in
237241 PacketFwdMethod : d .Get ("packet_forward_method" ).(string ),
238242 SrcPool : d .Get ("nat_source_pool" ).(string ),
239243 Port : fmt .Sprintf ("%d" , d .Get ("port" ).(int )),
240- PortRange : "0" ,
241244 ConnectionLimit : fmt .Sprintf ("%d" , d .Get ("connection_limit" ).(int )),
242245 ContentRouting : contentRouting ,
243246 ContentRewriting : "disable" ,
244247 Warmup : "0" ,
245248 Warmrate : "10" ,
246249 ConnectionRateLimit : fmt .Sprintf ("%d" , d .Get ("connection_rate_limit" ).(int )),
247- Log : "enable" ,
248250 Alone : "enable" ,
249251 Mkey : d .Get ("name" ).(string ),
250252 Interface : d .Get ("interface" ).(string ),
0 commit comments