display headnode from wizardconfig, use a details rather than a textarea
smbaker [Thu, 24 Jan 2013 01:53:57 +0000 (17:53 -0800)]
apps/gacksadmin/user_nodelist.php

index 829ebc8..7ab90d7 100644 (file)
@@ -45,12 +45,14 @@ $account_name = get_account_name($api, $_person_id);
 if ($account_name != NULL) {
     $slices=$api->GetSlices($account_name);
     if ($slices) {
-        $headNode = get_slice_headnode($api, $account_name);
+        $wizard_config = $api->SliceGetConfig($account_name);
+        $headNode = $wizard_config["master_node"];
         if ($headNode) {
-            print "<br>Head Node (Hadoop/MPI):</br>";
-            print "<textarea name=headnode cols=40 rows=1>";
-            print $headNode;
-            print "</textarea><br>";
+            print "<br><br>";
+            $details = new PlekitDetails(False);
+            $details->start();
+            $details->th_td("Head Node (Hadoop/MPI)", $headNode);\r
+            $details->end();\r
         }
 
         $slice = $slices[0];