Skip to content

Commit

Permalink
fix: iam_account_setting IBM-Cloud#3249
Browse files Browse the repository at this point in the history
  • Loading branch information
kavya498 committed Oct 29, 2021
1 parent ac64f3c commit 4ce0fa6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ibm/resource_ibm_iam_account_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ func resourceIbmIamAccountSettingsRead(context context.Context, d *schema.Resour
if err = d.Set("restrict_create_platform_apikey", accountSettingsResponse.RestrictCreatePlatformApikey); err != nil {
return diag.FromErr(fmt.Errorf("Error setting restrict_create_platform_apikey: %s", err))
}
log.Println("**************[3]*****************", *accountSettingsResponse.AllowedIPAddresses)
if err = d.Set("allowed_ip_addresses", accountSettingsResponse.AllowedIPAddresses); err != nil {
return diag.FromErr(fmt.Errorf("Error setting allowed_ip_addresses: %s", err))
}
Expand Down Expand Up @@ -282,7 +283,9 @@ func resourceIbmIamAccountSettingsUpdate(context context.Context, d *schema.Reso
hasChange := false

if d.HasChange("allowed_ip_addresses") {
log.Println("**************[1]*****************")
allowed_ip_addresses_str := d.Get("allowed_ip_addresses").(string)
log.Println("**************[2]*****************", allowed_ip_addresses_str)
updateAccountSettingsOptions.SetAllowedIPAddresses(allowed_ip_addresses_str)
hasChange = true
}
Expand Down

0 comments on commit 4ce0fa6

Please sign in to comment.