Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions services/observability/wait/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ func CreateInstanceWaitHandler(ctx context.Context, a APIClientInterface, instan
if err != nil {
return false, nil, err
}
if s == nil {
return false, nil, nil
}
if s.Id == nil || s.Status == nil {
return false, nil, fmt.Errorf("could not get instance id or status from response for project %s and instance %s", projectId, instanceId)
}
Expand All @@ -59,6 +62,9 @@ func UpdateInstanceWaitHandler(ctx context.Context, a APIClientInterface, instan
if err != nil {
return false, nil, err
}
if s == nil {
return false, nil, nil
}
if s.Id == nil || s.Status == nil {
return false, nil, fmt.Errorf("could not get instance id or status from response for project %s and instance %s", projectId, instanceId)
}
Expand All @@ -82,6 +88,9 @@ func DeleteInstanceWaitHandler(ctx context.Context, a APIClientInterface, instan
if err != nil {
return false, nil, err
}
if s == nil {
return false, nil, nil
}
if s.Id == nil || s.Status == nil {
return false, nil, fmt.Errorf("could not get instance id or status from response for project %s and instance %s", projectId, instanceId)
}
Expand Down
Loading