airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject airavata git commit: AIRAVATA-2335 Fix Sharing Reg init
Date Tue, 07 Mar 2017 21:22:37 GMT
Repository: airavata
Updated Branches:
  refs/heads/develop d6944a7e5 -> 95d88454b


AIRAVATA-2335 Fix Sharing Reg init


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

Branch: refs/heads/develop
Commit: 95d88454b2463b92c572a218b7596c7d8c92124f
Parents: d6944a7
Author: Marcus Christie <machristie@apache.org>
Authored: Tue Mar 7 16:21:13 2017 -0500
Committer: Marcus Christie <machristie@apache.org>
Committed: Tue Mar 7 16:21:13 2017 -0500

----------------------------------------------------------------------
 .../apache/airavata/api/server/handler/AiravataServerHandler.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/95d88454/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
index a530d97..99f8fa4 100644
--- a/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
+++ b/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
@@ -130,7 +130,7 @@ public class AiravataServerHandler implements Airavata.Iface {
     private void initSharingRegistry() throws ApplicationSettingsException, TException {
         SharingRegistryService.Client client = sharingClientPool.getResource();
         try {
-            if (client.getDomain(ServerSettings.getDefaultUserGateway()) == null) {
+            if (!client.isDomainExists(ServerSettings.getDefaultUserGateway())) {
                 Domain domain = new Domain();
                 domain.setDomainId(ServerSettings.getDefaultUserGateway());
                 domain.setName(ServerSettings.getDefaultUserGateway());


Mime
View raw message