Skip to content

Commit

Permalink
Update CONFIGURATION.md to clarify that valid_status_codes expects a …
Browse files Browse the repository at this point in the history
…list (#1335)

The valid_status_codes expects a list between square brackets. Without you get this error: cannot unmarshal !!str `200, 401` into []int

Signed-off-by: Nikotine1 <[email protected]>
  • Loading branch information
Nikotine1 authored Dec 24, 2024
1 parent 7e25c6f commit 5ebb6eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ modules:
### `<http_probe>`
```yml

# Accepted status codes for this probe. Defaults to 2xx.
[ valid_status_codes: <int>, ... | default = 2xx ]
# Accepted status codes for this probe. List between square brackets. Defaults to 2xx.
[ valid_status_codes: [<int>, ...] | default = 2xx ]

# Accepted HTTP versions for this probe.
[ valid_http_versions: <string>, ... ]
Expand Down

0 comments on commit 5ebb6eb

Please sign in to comment.