sureshanaparti commented on code in PR #9873:
URL: https://github.com/apache/cloudstack/pull/9873#discussion_r1900337463


##########
plugins/integrations/kubernetes-service/src/main/java/org/apache/cloudstack/api/command/user/kubernetes/cluster/StopKubernetesClusterCmd.java:
##########
@@ -100,7 +100,8 @@ public ApiCommandResourceType getApiResourceType() {
     public void execute() throws ServerApiException, 
ConcurrentOperationException {
         try {
             if (!kubernetesClusterService.stopKubernetesCluster(this)) {
-                throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, 
String.format("Failed to start Kubernetes cluster ID: %d", getId()));
+                KubernetesCluster cluster = 
kubernetesClusterService.findById(getId());
+                throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, 
String.format("Failed to start Kubernetes cluster %s with id %d", cluster, 
getId()));

Review Comment:
   ```suggestion
                   throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, 
String.format("Failed to stop Kubernetes cluster %s with id %d", cluster, 
getId()));
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to