From 994974ce7b32f0ff99051750b117bde28c62cd99 Mon Sep 17 00:00:00 2001 From: snirp90 Date: Thu, 4 Apr 2024 08:47:25 +0300 Subject: [PATCH] removing deprecated account id from policy dto upon update (#411) * #CWMS-3818 setting the account id according to resource file in case its provided * #CWMS-3818 setting the account id according to resource file in case its provided * #CWMS-3818 setting the account id according to resource file in case its provided * #CWMS-3818 removing account id from dto upon update since its a deprecated field. the account it is send as query param on the url --------- Co-authored-by: nir-parizer-Imperva <153715967+nir-parizer-Imperva@users.noreply.github.com> --- incapsula/resource_policy.go | 1 - 1 file changed, 1 deletion(-) diff --git a/incapsula/resource_policy.go b/incapsula/resource_policy.go index 154e37c7..15ab9418 100644 --- a/incapsula/resource_policy.go +++ b/incapsula/resource_policy.go @@ -186,7 +186,6 @@ func resourcePolicyUpdate(d *schema.ResourceData, m interface{}) error { Name: d.Get("name").(string), Enabled: d.Get("enabled").(bool), PolicyType: d.Get("policy_type").(string), - AccountID: d.Get("account_id").(int), Description: d.Get("description").(string), DefaultPolicyConfig: policyGetResponse.Value.DefaultPolicyConfig, PolicySettings: policySettings,