Skip to content

Commit

Permalink
HostBuilder don't use XPath any more
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacchella committed Oct 8, 2011
1 parent a391cc9 commit 20835af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/jrds/configuration/HostBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import jrds.factories.ArgFactory;
import jrds.factories.HostBuilderAgent;
import jrds.factories.ProbeFactory;
import jrds.factories.xml.CompiledXPath;
import jrds.factories.xml.JrdsDocument;
import jrds.factories.xml.JrdsElement;
import jrds.factories.xml.JrdsNode;
Expand Down Expand Up @@ -174,7 +173,9 @@ else if(forattr.containsKey("min") && forattr.containsKey("max") && forattr.cont
logger.error("Invalid host configuration, collection " + name + " not found");
}
}
for(JrdsElement probeNode: fragment.iterate(CompiledXPath.get("probe | rrd"), JrdsElement.class)) {
for(JrdsElement probeNode: fragment.getChildElements()) {
if(! "probe".equals(probeNode.getNodeName()) && ! "rrd".equals(probeNode.getNodeName()) )
continue;
try {
makeProbe(probeNode, host, ns);
} catch (Exception e) {
Expand Down

0 comments on commit 20835af

Please sign in to comment.