Skip to content

Commit 5ebb6eb

Browse files
authored
Update CONFIGURATION.md to clarify that valid_status_codes expects a 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]>
1 parent 7e25c6f commit 5ebb6eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CONFIGURATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ modules:
4747
### `<http_probe>`
4848
```yml
4949

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

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

0 commit comments

Comments
 (0)