Repository: airavata Updated Branches: refs/heads/develop c08468357 -> 264f616ff
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/develop Commit: 264f616ffecd585d92e650685b504101208e79dc Parents: c084683 Author: scnakandala <[email protected]> Authored: Thu Sep 22 12:32:49 2016 -0400 Committer: scnakandala <[email protected]> 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);
