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()); }