You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/10/03 15:38:30 UTC

[10/50] [abbrv] airavata git commit: fixing gateway intialization issue

fixing gateway intialization issue


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

Branch: refs/heads/airavata-gov-registry
Commit: 264f616ffecd585d92e650685b504101208e79dc
Parents: c084683
Author: scnakandala <su...@gmail.com>
Authored: Thu Sep 22 12:32:49 2016 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Thu Sep 22 12:32:49 2016 -0400

----------------------------------------------------------------------
 .../core/experiment/catalog/impl/ExperimentCatalogImpl.java        | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/264f616f/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java
index 8494493..53bd52b 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java
@@ -91,6 +91,8 @@ public class ExperimentCatalogImpl implements ExperimentCatalog {
     public ExperimentCatalogImpl(String gateway, String username, String password) throws RegistryException{
         if (!ExpCatResourceUtils.isGatewayExist(gateway)){
             gatewayResource = (GatewayResource) ExpCatResourceUtils.createGateway(gateway);
+            gatewayResource.setGatewayName(gateway);
+            gatewayResource.setGatewayApprovalStatus(GatewayApprovalStatus.APPROVED.toString());
             gatewayResource.save();
         }else {
             gatewayResource = (GatewayResource) ExpCatResourceUtils.getGateway(gateway);