diff --git a/xCAT-UI/noderangesource.php b/xCAT-UI/noderangesource.php index b9d80feab..afc41a4a3 100644 --- a/xCAT-UI/noderangesource.php +++ b/xCAT-UI/noderangesource.php @@ -39,10 +39,12 @@ require_once "js/jsonwrapper.php"; } } #If there were more groups than nodes, leave the signal to noise ratio down - foreach ($rvals->xcatresponse->node as $node) { - $jdata[] = array("data"=>"$node", + if ($root == 0) { + foreach ($rvals->xcatresponse->node as $node) { + $jdata[] = array("data"=>"$node", "attributes"=>array("id"=>",$node", "rel"=>'node')); + } } # header('Content-type: text/html'); echo json_encode($jdata);