From 30a57fc5ee6f2b9c65c190660fc823cda0a11267 Mon Sep 17 00:00:00 2001 From: mmagi Date: Fri, 9 Jun 2023 20:46:20 +0800 Subject: [PATCH] fix: robot webhook missing root object --- .../cloud/sonic/controller/tools/robot/vendor/WebhookImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic-server-controller/src/main/java/org/cloud/sonic/controller/tools/robot/vendor/WebhookImpl.java b/sonic-server-controller/src/main/java/org/cloud/sonic/controller/tools/robot/vendor/WebhookImpl.java index 2419d873..344f98ed 100644 --- a/sonic-server-controller/src/main/java/org/cloud/sonic/controller/tools/robot/vendor/WebhookImpl.java +++ b/sonic-server-controller/src/main/java/org/cloud/sonic/controller/tools/robot/vendor/WebhookImpl.java @@ -17,7 +17,7 @@ public void sendMessage(RestTemplate restTemplate, String token, String secret, ResponseEntity responseEntity = restTemplate.getForEntity(token, Object.class); log.info("robot result: " + responseEntity.getBody()); } else { - Object content = messageTemplate.getValue(ctx); + Object content = messageTemplate.getValue(ctx, message); ResponseEntity responseEntity = restTemplate.postForEntity(token, content, Object.class); log.info("robot result: " + responseEntity.getBody()); }