[DEBUG] correct health check

This commit is contained in:
Edouard DUPIN 2023-01-29 23:12:39 +01:00
parent 792df536b2
commit 2ecc01d8d6
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public class HealthCheck {
@GET
@PermitAll
public Response getHealth() {
if (JWTWrapper.getPublicKey() == null) {
if (JWTWrapper.getPublicKeyJson() == null) {
return Response.status(500).entity(new HealthResult("Missing Jwt public token")).build();
}
return Response.status(200).entity(new HealthResult("alive and kicking")).build();

View File

@ -32,7 +32,7 @@ class KaranageState:
return self.connection.get_url(service)
return f"{self.connection.get_url(service)}/{topic}"
def send(self, topic: str, data: Optional[Dict], state: StateSystem = StateSystem.OK) -> None:
def send(self, topic: str, data: Optional[Dict] = None, state: StateSystem = StateSystem.OK) -> None:
"""Send a message to the server.
:param topic: Topic where to publish the data.
:param data: Data to send to the server