airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject [2/2] git commit: fixing error condition
Date Wed, 17 Sep 2014 15:55:43 GMT
fixing error condition


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/17e8fd3b
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/17e8fd3b
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/17e8fd3b

Branch: refs/heads/master
Commit: 17e8fd3b3c9dfd2eab8d811561d8357215f3d77d
Parents: b8bb82c
Author: Chathuri Wimalasena <kamalasini@gmail.com>
Authored: Wed Sep 17 11:55:36 2014 -0400
Committer: Chathuri Wimalasena <kamalasini@gmail.com>
Committed: Wed Sep 17 11:55:36 2014 -0400

----------------------------------------------------------------------
 .../application/catalog/data/impl/ComputeResourceImpl.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/17e8fd3b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/ComputeResourceImpl.java
----------------------------------------------------------------------
diff --git a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/ComputeResourceImpl.java
b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/ComputeResourceImpl.java
index 2b13cee..5b55556 100644
--- a/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/ComputeResourceImpl.java
+++ b/modules/app-catalog/app-catalog-data/src/main/java/org/apache/aiaravata/application/catalog/data/impl/ComputeResourceImpl.java
@@ -38,7 +38,7 @@ public class ComputeResourceImpl implements ComputeResource {
     @Override
     public String addComputeResource(ComputeResourceDescription description) throws AppCatalogException
{
         try {
-            if (description.getComputeResourceId().equals("") || !description.getComputeResourceId().equals(computeResourceModelConstants.DEFAULT_ID)){
+            if (!description.getComputeResourceId().equals("") || !description.getComputeResourceId().equals(computeResourceModelConstants.DEFAULT_ID)){
                 description.setComputeResourceId(AppCatalogUtils.getID(description.getHostName()));
             }
         	return saveComputeResourceDescriptorData(description);


Mime
View raw message