Cloudwatch: Accept empty string for logstimeout and mark errors downstream (#96947)

This commit is contained in:
Isabella Siu
2024-12-03 15:02:52 -05:00
committed by GitHub
parent 7fd8877439
commit f4e108c34f
5 changed files with 36 additions and 5 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ func (e *cloudWatchExecutor) executeAnnotationQuery(ctx context.Context, pluginC
cli, err := e.getCWClient(ctx, pluginCtx, region)
if err != nil {
return nil, err
result = errorsource.AddDownstreamErrorToResponse(query.RefID, result, fmt.Errorf("%v: %w", "failed to get client", err))
return result, nil
}
var alarmNames []*string