stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From im...@apache.org
Subject [3/4] stratos git commit: Changing logic for validtion
Date Mon, 22 Jun 2015 06:09:51 GMT
Changing logic for validtion


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/9a85c8f8
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/9a85c8f8
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/9a85c8f8

Branch: refs/heads/master
Commit: 9a85c8f8e4b2bbd25c8b3ff6f2c4f31078d683ce
Parents: 0f796c8
Author: anuruddhal <anuruddha789@gmail.com>
Authored: Wed Jun 17 20:14:38 2015 +0530
Committer: Imesh Gunaratne <imesh@apache.org>
Committed: Mon Jun 22 11:39:42 2015 +0530

----------------------------------------------------------------------
 .../java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/9a85c8f8/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 34417ff..6f8bcc6 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
@@ -1245,8 +1245,7 @@ public class StratosApiV41 extends AbstractApi {
             return Response.status(Response.Status.NOT_FOUND).entity(new ResponseMessageBean(
                     ResponseMessageBean.ERROR, msg)).build();
         }
-        if (!applicationDefinition.getStatus().equalsIgnoreCase(StratosApiV41Utils.APPLICATION_STATUS_DEPLOYED)
||
-                !applicationDefinition.getStatus().equalsIgnoreCase(StratosApiV41Utils.APPLICATION_STATUS_UNDEPLOYING))
{
+        if (applicationDefinition.getStatus().equalsIgnoreCase(StratosApiV41Utils.APPLICATION_STATUS_CREATED))
{
             String message = String.format("Could not undeploy since application is not in
DEPLOYED status " +
                     "[application-id] %s [current status] %S", applicationId, applicationDefinition.getStatus());
             log.info(message);


Mime
View raw message