Skip to content

Commit

Permalink
Fix express_route_circuit_peering datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
favoretti committed Feb 22, 2024
1 parent d5425b8 commit c548648
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ func dataSourceExpressRouteCircuitPeeringRead(d *pluginsdk.ResourceData, meta in
resp, err := client.Get(ctx, id.ResourceGroup, id.ExpressRouteCircuitName, id.PeeringName)
if err != nil {
if utils.ResponseWasNotFound(resp.Response) {
d.SetId("")
return nil
return fmt.Errorf("%s was not found", id)
}
return fmt.Errorf("retrieving %s: %+v", *id, err)
}
Expand Down

0 comments on commit c548648

Please sign in to comment.