airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [4/8] airavata-php-gateway git commit: fixing AIRAVATA-1741
Date Tue, 30 Jun 2015 20:40:34 GMT
fixing AIRAVATA-1741


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/ebfea7fc
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/ebfea7fc
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/ebfea7fc

Branch: refs/heads/master
Commit: ebfea7fc423ed0417da5e2cdc83690cb378095b8
Parents: 6e33674
Author: Supun Nakandala <scnakandala@apache.org>
Authored: Tue Jun 30 21:51:53 2015 +0530
Committer: Supun Nakandala <scnakandala@apache.org>
Committed: Tue Jun 30 22:03:29 2015 +0530

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/ebfea7fc/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 871113a..5a924b1 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -616,7 +616,12 @@ class ExperimentUtilities
             $userConfigData = $experiment->userConfigurationData;
             $scheduling = $userConfigData->computationalResourceScheduling;
             $expVal['scheduling'] = $scheduling;
-            $expVal["computeResource"] = CRUtilities::get_compute_resource($scheduling->resourceHostId);
+            try {
+                $expVal["computeResource"] = CRUtilities::get_compute_resource($scheduling->resourceHostId);
+            } catch (Exception $ex) {
+                //Error while retrieving CR
+                $expVal["computeResource"] = "";
+            }
         }
         $expVal["applicationInterface"] = AppUtilities::get_application_interface($experiment->applicationId);
 


Mime
View raw message