@@ -260,8 +260,6 @@ public String getAgentHtml(@PathParam("agentname") String agName) {
260260 Agent ag = getAgent (agName );
261261 if (ag != null ) {
262262 so .append ( mindInspectorTransformerHTML .transform ( ag .getAgState () )); // transform to HTML
263- } else {
264- // TODO: use the rest API to get the agent HTML in the remote host
265263 }
266264
267265 so .append ("<hr/><a href='plans' style='font-family: arial; text-decoration: none'>list plans</a>, " );
@@ -315,8 +313,6 @@ public String loadPlans(@PathParam("agentname") String agName,
315313 ag .parseAS (new StringReader (plans ), "RrestAPI" );
316314 ag .load (uploadedInputStream , "restAPI://" +fileDetail .getFileName ());
317315 r = "ok, code uploaded!" ;
318- } else {
319- // TODO: use rest API to load in the remote agent
320316 }
321317 return "<head><meta http-equiv=\" refresh\" content=\" 2; URL='/agents/" +agName +"/all'\" /></head>" +r ;
322318 } catch (Exception e ) {
@@ -334,7 +330,6 @@ public Document getAgentXml(@PathParam("agentname") String agName) {
334330 if (ag != null )
335331 return ag .getAgState ();
336332 else
337- // TODO: use rest API to load in the remote agent
338333 return null ;
339334 } catch (Exception e ) {
340335 e .printStackTrace ();
@@ -357,8 +352,6 @@ public String getAgentPlansTxt(@PathParam("agentname") String agName,
357352 so .append (pl .getAsTxt (false ));
358353 else
359354 so .append (pl .get (label ).toASString ());
360- } else {
361- // TODO: use rest API to load in the remote agent
362355 }
363356 } catch (Exception e ) {
364357 e .printStackTrace ();
@@ -419,7 +412,6 @@ String execCmd(String agName, String sCmd) {
419412 createAgLog (agName , ag );
420413 return "included for execution" ;
421414 } else {
422- // TODO: use rest API to load in the remote agent
423415 return "not implemented" ;
424416 }
425417 } catch (Exception e ) {
0 commit comments