Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mikatong committed Jan 8, 2025
1 parent 932b075 commit ce8773b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func resourceTencentCloudMongodbInstanceParamsUpdate(d *schema.ResourceData, met
request.InstanceId = helper.String(d.Get("instance_id").(string))

if v, ok := d.GetOk("instance_params"); ok {
for _, item := range v.([]interface{}) {
for _, item := range v.(*schema.Set).List() {
instanceParamsMap := item.(map[string]interface{})
modifyMongoDBParamType := mongodb.ModifyMongoDBParamType{}
if v, ok := instanceParamsMap["key"]; ok {
Expand Down Expand Up @@ -174,7 +174,7 @@ func resourceTencentCloudMongodbInstanceParamsUpdate(d *schema.ResourceData, met
}

service := MongodbService{client: meta.(tccommon.ProviderMeta).GetAPIV3Conn()}
instanceParams := d.Get("instance_params").([]interface{})
instanceParams := d.Get("instance_params").(*schema.Set).List()
paramMap := make(map[string]string)
paramNames := make([]string, 0)

Expand Down

0 comments on commit ce8773b

Please sign in to comment.