Skip to content

Commit

Permalink
Getting ResourceNotFound error in table azure_subnet closes #555 (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthaI authored Jan 10, 2023
1 parent 4937efd commit 5a406c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion azure/table_azure_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func getIpConfigurationAsync(ctx context.Context, ipConfig *network.IPConfigurat
rowData, err := getIpConfiguration(ctx, ipConfig, client)
if err != nil {
errorCh <- err
} else if rowData.ID != nil {
} else if rowData != nil {
ipCh <- rowData
}
}
Expand All @@ -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 5a406c9

Please sign in to comment.