airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [27/40] airavata-php-gateway git commit: fixing AIRAVATA-1741
Date Tue, 14 Jul 2015 16:38:32 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/a411b2b2
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/a411b2b2
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/a411b2b2

Branch: refs/heads/0.15-release-branch
Commit: a411b2b20024760743a801bc247267a9192b3392
Parents: 76e9c65
Author: Supun Nakandala <scnakandala@apache.org>
Authored: Tue Jun 30 17:01:10 2015 +0530
Committer: Supun Nakandala <scnakandala@apache.org>
Committed: Tue Jun 30 17:01:10 2015 +0530

----------------------------------------------------------------------
 app/views/project/summary.blade.php | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/a411b2b2/app/views/project/summary.blade.php
----------------------------------------------------------------------
diff --git a/app/views/project/summary.blade.php b/app/views/project/summary.blade.php
index aeb6579..6501686 100755
--- a/app/views/project/summary.blade.php
+++ b/app/views/project/summary.blade.php
@@ -72,8 +72,17 @@
 
         echo "<td>$applicationInterface->applicationName</td>";
 
-        echo '<td>' . CRUtilities::get_compute_resource($experiment->userConfigurationData
-                ->computationalResourceScheduling->resourceHostId)->hostName . '</td>';
+        echo '<td>';
+        try {
+            $cr = CRUtilities::get_compute_resource($experiment->userConfigurationData
+                ->computationalResourceScheduling->resourceHostId);
+            if (!empty($cr)) {
+                echo $cr->hostName;
+            }
+        } catch (Exception $ex) {
+            //Error while retrieving the CR
+        }
+        echo '</td>';
         echo '<td class="time" unix-time="' . $expValues["experimentTimeOfStateChange"]
. '"></td>';
 
 


Mime
View raw message