You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/06/29 14:40:20 UTC

[2/2] airavata git commit: AIRAVATA-2419 Save admin credentials when migrating

AIRAVATA-2419 Save admin credentials when migrating

Testing revealed that the MigrationManager.java wasn't saving
credentials.


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

Branch: refs/heads/develop
Commit: de6fcb19c509f37ff50590606fe08325266e583f
Parents: 9792d27
Author: Marcus Christie <ma...@apache.org>
Authored: Thu Jun 29 10:39:31 2017 -0400
Committer: Marcus Christie <ma...@apache.org>
Committed: Thu Jun 29 10:39:31 2017 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/airavata/MigrationManager.java         | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/de6fcb19/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
----------------------------------------------------------------------
diff --git a/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java b/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
index 68ad855..378da0a 100644
--- a/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
+++ b/modules/user-profile-migration/src/main/java/org/apache/airavata/MigrationManager.java
@@ -287,6 +287,7 @@ public class MigrationManager {
         GatewayResourceProfile gatewayResourceProfile = airavataClient.getGatewayResourceProfile(authzToken, gatewayId);
         gatewayResourceProfile.setIdentityServerTenant(gatewayId);
         gatewayResourceProfile.setIdentityServerPwdCredToken(passwordToken);
+        airavataClient.updateGatewayResourceProfile(authzToken, gatewayId, gatewayResourceProfile);
         return true;
     }