airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject airavata git commit: fixing bug with storage preference saving
Date Mon, 14 Dec 2015 19:24:04 GMT
Repository: airavata
Updated Branches:
  refs/heads/master bd457c2d5 -> 8f820e5a5


fixing bug with storage preference saving


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

Branch: refs/heads/master
Commit: 8f820e5a5ee9b86be04e137040824d6d0e7da62c
Parents: bd457c2
Author: Chathuri Wimalasena <chathuri@apache.org>
Authored: Mon Dec 14 14:24:00 2015 -0500
Committer: Chathuri Wimalasena <chathuri@apache.org>
Committed: Mon Dec 14 14:24:00 2015 -0500

----------------------------------------------------------------------
 .../registry/core/app/catalog/impl/GwyResourceProfileImpl.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/8f820e5a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/impl/GwyResourceProfileImpl.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/impl/GwyResourceProfileImpl.java
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/impl/GwyResourceProfileImpl.java
index 29b3101..1f857ef 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/impl/GwyResourceProfileImpl.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/impl/GwyResourceProfileImpl.java
@@ -135,11 +135,11 @@ public class GwyResourceProfileImpl implements GwyResourceProfile {
                 for (StoragePreference storagePreference : dataStoragePreferences){
                     StoragePreferenceResource resource = new StoragePreferenceResource();
                     resource.setStorageResourceId(storagePreference.getStorageResourceId());
-                    resource.setGatewayId(profileResource.getGatewayID());
+                    resource.setGatewayId(existingGP.getGatewayID());
                     resource.setFsRootLocation(storagePreference.getFileSystemRootLocation());
                     resource.setLoginUserName(storagePreference.getLoginUserName());
                     resource.setResourceCSToken(storagePreference.getResourceSpecificCredentialStoreToken());
-                    resource.setGatewayProfile(profileResource);
+                    resource.setGatewayProfile(existingGP);
                     resource.save();
                 }
             }


Mime
View raw message