Skip to content

Commit

Permalink
Getting ResourceNotFound error in table azure_subnet closes #555
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthaI committed Jan 4, 2023
1 parent 4937efd commit dd9836b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions azure/table_azure_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ func getIpConfiguration(ctx context.Context, ipConfig *network.IPConfiguration,

configuration, err := client.Get(ctx, resourceGroup, networkInterface, configName)
if err != nil {
if strings.Contains(err.Error(), "ResourceNotFound") {
return nil, nil
}
return nil, err
}

Expand Down

0 comments on commit dd9836b

Please sign in to comment.