Skip to content

Commit

Permalink
removing deprecated account id from policy dto upon update (#411)
Browse files Browse the repository at this point in the history
* #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 <[email protected]>
  • Loading branch information
snirp90 and nir-parizer-Imperva authored Apr 4, 2024
1 parent 64e13e4 commit 994974c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion incapsula/resource_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 994974c

Please sign in to comment.