You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2015/05/19 15:22:57 UTC
[2/2] stratos git commit: Fix updating Kub cluster API with correct
return type and some other details
Fix updating Kub cluster API with correct return type and some other details
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/b37e842e
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/b37e842e
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/b37e842e
Branch: refs/heads/master
Commit: b37e842efff3c5c55f395c810428ea94d75d6061
Parents: 13c4008
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Tue May 19 18:20:28 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Tue May 19 18:52:50 2015 +0530
----------------------------------------------------------------------
.../org/apache/stratos/rest/endpoint/api/StratosApiV41.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/b37e842e/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
index 095fdf0..67e293a 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
+++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
@@ -1808,10 +1808,10 @@ public class StratosApiV41 extends AbstractApi {
}
/**
- * Deploy kubernetes host cluster.
+ * Update kubernetes host cluster.
*
* @param kubernetesCluster the kubernetes cluster
- * @return 201 if the kubernetes cluster is successfully created
+ * @return 200 if the kubernetes cluster is successfully updated
* @throws RestAPIException the rest api exception
*/
@PUT
@@ -1825,8 +1825,8 @@ public class StratosApiV41 extends AbstractApi {
try {
StratosApiV41Utils.updateKubernetesCluster(kubernetesCluster);
URI url = uriInfo.getAbsolutePathBuilder().path(kubernetesCluster.getClusterId()).build();
- return Response.created(url).entity(new ResponseMessageBean(ResponseMessageBean.SUCCESS,
- String.format("Kubernetes cluster added successfully: [kub-host-cluster] %s",
+ return Response.ok(url).entity(new ResponseMessageBean(ResponseMessageBean.SUCCESS,
+ String.format("Kubernetes cluster updated successfully: [kub-host-cluster] %s",
kubernetesCluster.getClusterId()))).build();
} catch (RestAPIException e) {
throw e;