You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ch...@apache.org on 2015/04/14 18:09:41 UTC
stratos git commit: [STRATOS-1320] - updateKubernetesHost returns two
status codes - Fixed to return 200 Ok.
Repository: stratos
Updated Branches:
refs/heads/master 57099f61d -> 7b09bc153
[STRATOS-1320] - updateKubernetesHost returns two status codes - Fixed to return 200 Ok.
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/7b09bc15
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/7b09bc15
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/7b09bc15
Branch: refs/heads/master
Commit: 7b09bc1534c5708a47a7b61ae0a83f96957e7eeb
Parents: 57099f6
Author: Chamila de Alwis <ch...@apache.org>
Authored: Tue Apr 14 21:11:22 2015 +0530
Committer: Chamila de Alwis <ch...@apache.org>
Committed: Tue Apr 14 21:11:22 2015 +0530
----------------------------------------------------------------------
.../java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/7b09bc15/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 8b931d3..9c8b8c7 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
@@ -1918,7 +1918,7 @@ public class StratosApiV41 extends AbstractApi {
try {
StratosApiV41Utils.updateKubernetesHost(kubernetesHost);
URI url = uriInfo.getAbsolutePathBuilder().path(kubernetesHost.getHostId()).build();
- return Response.created(url).entity(new SuccessResponseBean(Response.Status.OK.getStatusCode(),
+ return Response.ok(url).entity(new SuccessResponseBean(Response.Status.OK.getStatusCode(),
String.format("Kubernetes Host updated successfully: [kub-host] %s",
kubernetesHost.getHostId()))).build();
} catch (RestAPIException e) {