You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2015/06/30 22:40:34 UTC

[4/8] airavata-php-gateway git commit: fixing AIRAVATA-1741

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 <sc...@apache.org>
Authored: Tue Jun 30 21:51:53 2015 +0530
Committer: Supun Nakandala <sc...@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);