You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: provider/datasource_rediscloud_active_active_transit_gateway.go
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,17 @@ func dataSourceActiveActiveTransitGatewayRead(ctx context.Context, d *schema.Res
85
85
returndiag.FromErr(err)
86
86
}
87
87
88
+
// Check for nil response structure
89
+
iftgwTask==nil {
90
+
returndiag.Errorf("Transit Gateway API returned nil task for subscription %d, region %d", subId, regionId)
91
+
}
92
+
iftgwTask.Response==nil {
93
+
returndiag.Errorf("Transit Gateway API returned nil response for subscription %d, region %d", subId, regionId)
94
+
}
95
+
iftgwTask.Response.Resource==nil {
96
+
returndiag.Errorf("Transit Gateway API returned nil resource for subscription %d, region %d - subscription may not be fully provisioned yet", subId, regionId)
0 commit comments