@@ -110,13 +110,13 @@ func resourceAccount() *schema.Resource {
110110 Optional : true ,
111111 Computed : true ,
112112 },
113- "inactivity_timeout" : {
114- Description : "Duration of inactivity in minutes before timeout. Options are 15,30,60,90,120." ,
115- Type : schema .TypeInt ,
116- Default : 15 ,
117- Optional : true ,
118- ValidateFunc : validation .IntInSlice ([]int {15 , 30 , 60 , 90 , 120 }),
119- },
113+ "inactivity_timeout" : {
114+ Description : "Duration of inactivity in minutes before timeout. Options are 15,30,60,90,120." ,
115+ Type : schema .TypeInt ,
116+ Default : 15 ,
117+ Optional : true ,
118+ ValidateFunc : validation .IntInSlice ([]int {15 , 30 , 60 , 90 , 120 }),
119+ },
120120 "enable_http2_for_new_sites" : {
121121 Description : "Enable HTTP/2 for traffic between end-users (visitors) and Imperva for newly created SSL sites. Options are `true` and `false`. Defaults to `true`" ,
122122 Type : schema .TypeString ,
@@ -304,7 +304,7 @@ func resourceAccountDelete(d *schema.ResourceData, m interface{}) error {
304304func updateAdditionalAccountProperties (client * Client , d * schema.ResourceData ) error {
305305 consentRequiredParam := "consent_required"
306306 defaultInactivityTimeout := "15"
307- updateParams := [7 ]string {"account_name" , "error_page_template" , "support_all_tls_versions" , "naked_domain_san_for_new_www_sites" , "wildcard_san_for_new_sites" , consentRequiredParam , "inactivity_timeout" }
307+ updateParams := [7 ]string {"account_name" , "error_page_template" , "support_all_tls_versions" , "naked_domain_san_for_new_www_sites" , "wildcard_san_for_new_sites" , consentRequiredParam , "inactivity_timeout" }
308308 for i := 0 ; i < len (updateParams ); i ++ {
309309 param := updateParams [i ]
310310 if d .HasChange (param ) {
@@ -313,12 +313,12 @@ func updateAdditionalAccountProperties(client *Client, d *schema.ResourceData) e
313313 if param == consentRequiredParam {
314314 paramValStr = strconv .FormatBool (d .Get (param ).(bool ))
315315 } else if param == "inactivity_timeout" {
316- if d .Get (param ).(int ) == 0 {
317- paramValStr = defaultInactivityTimeout
318- } else {
319- paramValStr = strconv .Itoa (d .Get (param ).(int ))
320- }
321- } else {
316+ if d .Get (param ).(int ) == 0 {
317+ paramValStr = defaultInactivityTimeout
318+ } else {
319+ paramValStr = strconv .Itoa (d .Get (param ).(int ))
320+ }
321+ } else {
322322 paramValStr = d .Get (param ).(string )
323323 }
324324
0 commit comments