]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
radhttpcheck: Typo
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 24 May 2023 05:45:40 +0000 (01:45 -0400)
committerGitHub <noreply@github.com>
Wed, 24 May 2023 05:45:40 +0000 (01:45 -0400)
scripts/health/radhttpcheck/radhttpcheck.py

index 9d7e0674e6d7d6e0363d353daa120a7160f34da3..975fd408faed3e3200c917e3d10587d025592ae2 100755 (executable)
@@ -128,7 +128,7 @@ class RadiusHealthCheckHandler(BaseHTTPRequestHandler):
 
         # Deal with response code mismatches
         if healthcheck['require_ack'] and healthcheck['type'].has_key('rsp_code') and rsp.code != healthcheck['type']['rsp_code']:
-            self.genericResponse(502, json.dumps({"msg": "Healthcheck error: Bad response code, expected " + code2str(healthcheck['type']['rsp_code']) + ", got " + code2str(rsp.code) })) # BadGateway
+            self.genericResponse(502, json.dumps({"msg": "Healthcheck error: Bad response code, expected " + self.code2str(healthcheck['type']['rsp_code']) + ", got " + self.code2str(rsp.code) })) # BadGateway
             return
 
         self.genericResponse(200, json.dumps({"msg": "Healthcheck OK" }))