Skip to content

Commit

Permalink
feat(elasticache/serverless): fix reader_endpoint name
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Birkett <[email protected]>
  • Loading branch information
portswigger-tim committed Nov 25, 2024
1 parent 9173df7 commit 8e83741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/elasticache/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ func Configure(p *config.Provider) { //nolint:gocyclo
for i, rp := range readerendpoints {
if readerendpoint, ok := rp.(map[string]any); ok && len(readerendpoint) > 0 {
if address, ok := readerendpoint["address"].(string); ok {
key := fmt.Sprintf("cluster_endpoint_%d_address", i)
key := fmt.Sprintf("reader_endpoint_%d_address", i)
conn[key] = []byte(address)
}
if port, ok := readerendpoint["port"].(float64); ok {
key := fmt.Sprintf("cluster_endpoint_%d_port", i)
key := fmt.Sprintf("reader_endpoint_%d_port", i)
conn[key] = []byte(fmt.Sprintf("%g", port))
}
}
Expand Down

0 comments on commit 8e83741

Please sign in to comment.