Commit f6d0b5c
fix: health check now treats HTTP 403 as healthy
Nautobot 3.x returns 403 Forbidden on unauthenticated GET /api/ requests.
urllib.request.urlopen() raises HTTPError on non-2xx responses, so the
container was never marked healthy even though the server was running.
Updated the health check to exit 0 when the server responds 401 or 403.
Co-authored-by: Jackass4life <94110786+Jackass4life@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Jackass4life/Nautobot-maps/sessions/e33098a2-27ad-47ed-bb23-50a04349a0691 parent c3859bb commit f6d0b5c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments