Skip to content

Commit

Permalink
Update mysql_flexible_server_data_source.go (#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 Jun 20, 2022
1 parent b8588f3 commit b2f3d90
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 b2f3d90

Please sign in to comment.