Skip to content

Commit

Permalink
Update(Cloud-Databases): Added hints for region and location mismatch…
Browse files Browse the repository at this point in the history
…es (#5557)
  • Loading branch information
omaraibrahim authored Aug 8, 2024
1 parent b0d447b commit bece1cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ibm/service/database/data_source_ibm_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ func dataSourceIBMDatabaseInstanceRead(d *schema.ResourceData, meta interface{})

autoscalingGroup, _, err := cloudDatabasesClient.GetAutoscalingConditions(getAutoscalingConditionsOptions)
if err != nil {
return fmt.Errorf("[ERROR] Error getting database autoscaling groups: %s", err)
return fmt.Errorf("[ERROR] Error getting database autoscaling groups: %s\n Hint: Check if there is a mismatch between your database location and IBMCLOUD_REGION", err)
}
d.Set("auto_scaling", flattenAutoScalingGroup(*autoscalingGroup))

Expand Down
2 changes: 1 addition & 1 deletion ibm/service/database/resource_ibm_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@ func resourceIBMDatabaseInstanceRead(context context.Context, d *schema.Resource

autoscalingGroup, _, err := cloudDatabasesClient.GetAutoscalingConditions(getAutoscalingConditionsOptions)
if err != nil {
return diag.FromErr(fmt.Errorf("[ERROR] Error getting database autoscaling groups: %s", err))
return diag.FromErr(fmt.Errorf("[ERROR] Error getting database autoscaling groups: %s\n Hint: Check if there is a mismatch between your database location and IBMCLOUD_REGION", err))
}
d.Set("auto_scaling", flattenAutoScalingGroup(*autoscalingGroup))

Expand Down

0 comments on commit bece1cc

Please sign in to comment.