Changeset 86e1c05fa7c180d9d908fc39e800e0ed70c8aeb8
- Timestamp:
- 05/26/10 01:34:07
(3 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1274837647 +0000
- git-parent:
[a5e761d52d97a6681d7c9db3a7707d8af31852f5]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1274837647 +0000
- Message:
check to make sure we have a config
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rcad4382 |
r86e1c05 |
|
| 667 | 667 | } |
|---|
| 668 | 668 | cnt = xmlXPathNodeSetGetLength(pobj->nodesetval); |
|---|
| 669 | | node = (noit_conf_section_t)xmlXPathNodeSetItem(pobj->nodesetval, 0); |
|---|
| 670 | | titled = 0; |
|---|
| 671 | | config = noit_conf_get_hash(node, "config"); |
|---|
| 672 | | while(noit_hash_next(config, &iter, &k, &klen, &data)) { |
|---|
| 673 | | if(!titled++) nc_printf(ncct, "== Section [Aggregated] Config ==\n"); |
|---|
| 674 | | nc_printf(ncct, "config::%s: %s\n", k, (const char *)data); |
|---|
| 675 | | } |
|---|
| 676 | | noit_hash_destroy(config, free, free); |
|---|
| 677 | | free(config); |
|---|
| | 669 | if(cnt > 0) { |
|---|
| | 670 | node = (noit_conf_section_t)xmlXPathNodeSetItem(pobj->nodesetval, 0); |
|---|
| | 671 | titled = 0; |
|---|
| | 672 | config = noit_conf_get_hash(node, "config"); |
|---|
| | 673 | while(noit_hash_next(config, &iter, &k, &klen, &data)) { |
|---|
| | 674 | if(!titled++) nc_printf(ncct, "== Section [Aggregated] Config ==\n"); |
|---|
| | 675 | nc_printf(ncct, "config::%s: %s\n", k, (const char *)data); |
|---|
| | 676 | } |
|---|
| | 677 | noit_hash_destroy(config, free, free); |
|---|
| | 678 | free(config); |
|---|
| | 679 | } |
|---|
| 678 | 680 | xmlXPathFreeObject(pobj); |
|---|
| 679 | 681 | |
|---|