AIRAVATA-2156 Calling correct API method In the backend, the credential store ends up doing the same thing, which is why even though the wrong method is called, this didn't show up as a bug.
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/2685fa8f Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/2685fa8f Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/2685fa8f Branch: refs/heads/develop Commit: 2685fa8f8a3690d7febd5ff645da477248021600 Parents: d75f93d Author: Marcus Christie <[email protected]> Authored: Wed Oct 26 09:19:55 2016 -0400 Committer: Marcus Christie <[email protected]> Committed: Wed Oct 26 11:22:27 2016 -0400 ---------------------------------------------------------------------- app/libraries/AdminUtilities.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/2685fa8f/app/libraries/AdminUtilities.php ---------------------------------------------------------------------- diff --git a/app/libraries/AdminUtilities.php b/app/libraries/AdminUtilities.php index c930425..bf7116a 100644 --- a/app/libraries/AdminUtilities.php +++ b/app/libraries/AdminUtilities.php @@ -191,11 +191,11 @@ class AdminUtilities } public static function remove_ssh_token( $token){ - return Airavata::deletePWDCredential( Session::get('authz-token'), $token, Session::get("gateway_id")); + return Airavata::deleteSSHPubKey( Session::get('authz-token'), $token, Session::get("gateway_id")); } public static function remove_pwd_token( $token){ - return Airavata::deleteSSHPubKey( Session::get('authz-token'), $token, Session::get("gateway_id")); + return Airavata::deletePWDCredential( Session::get('authz-token'), $token, Session::get("gateway_id")); } public static function add_or_update_notice( $notifData, $update = false){
