[Reconnoiter-devel] [reconnoiter commit] Reconnoiter branch, master, updated. b2a08ebd72aed85e425a8b853ac201b7faac0453
git at labs.omniti.com
git at labs.omniti.com
Thu Mar 29 17:26:16 EDT 2012
Pushed by: jesus
The branch, master has been updated
via b2a08ebd72aed85e425a8b853ac201b7faac0453 (commit)
from a90855c69b0558acdbe4524e80b60e40a40c6b21 (commit)
Summary of changes:
src/noit_check_rest.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
Log:
commit b2a08ebd72aed85e425a8b853ac201b7faac0453
Author: Theo Schlossnagle <jesus at omniti.com>
Date: Thu Mar 29 21:26:14 2012 +0000
create namespaces in the return document without regard for the master config
diff --git a/src/noit_check_rest.c b/src/noit_check_rest.c
index 65501e9..a3fd6af 100644
--- a/src/noit_check_rest.c
+++ b/src/noit_check_rest.c
@@ -215,18 +215,15 @@ rest_show_check(noit_http_rest_closure_t *restc,
mod_cnt = noit_check_registered_module_cnt();
for(mod=0; mod<mod_cnt; mod++) {
- noit_conf_section_t toplevel;
- xmlNodePtr nodeptr;
xmlNsPtr ns;
const char *nsname;
char buff[256];
nsname = noit_check_registered_module(mod);
- toplevel = noit_conf_get_section(NULL, "/*");
- nodeptr = (xmlNodePtr)toplevel;
snprintf(buff, sizeof(buff), "noit://module/%s", nsname);
- ns = xmlSearchNs(nodeptr->doc, nodeptr, (xmlChar *)nsname);
+ ns = xmlSearchNs(root->doc, root, (xmlChar *)nsname);
+ if(!ns) ns = xmlNewNs(root, (xmlChar *)buff, (xmlChar *)nsname);
if(ns) {
configh = noit_conf_get_namespaced_hash(node, "config", nsname);
if(configh) {
hooks/post-receive
--
Reconnoiter
More information about the Reconnoiter-devel
mailing list