Skip to content

Commit

Permalink
Update mysql_flexible_server_data_source.go (hashicorp#17301)
Browse files Browse the repository at this point in the history
The id returned is for a standard server Mysql database, not a flexible server.
  • Loading branch information
hillen authored and sergelogvinov committed Jul 11, 2022
1 parent 55a4876 commit 179abfd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func dataSourceMysqlFlexibleServerRead(d *pluginsdk.ResourceData, meta interface
ctx, cancel := timeouts.ForRead(meta.(*clients.Client).StopContext, d)
defer cancel()

id := parse.NewServerID(subscriptionId, d.Get("resource_group_name").(string), d.Get("name").(string))
id := parse.NewFlexibleServerID(subscriptionId, d.Get("resource_group_name").(string), d.Get("name").(string))
resp, err := client.Get(ctx, id.ResourceGroup, id.Name)
if err != nil {
if utils.ResponseWasNotFound(resp.Response) {
Expand Down

0 comments on commit 179abfd

Please sign in to comment.