Module: check_mk
Branch: master
Commit: 08d51620768810f994e4bbcc32fd2554c9a16814
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=08d51620768810…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Thu Mar 10 10:53:41 2016 +0100
slight improvement to the wmitest tool
---
agents/windows/wmitest.cc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/agents/windows/wmitest.cc b/agents/windows/wmitest.cc
index 4bd81e0..f35751b 100644
--- a/agents/windows/wmitest.cc
+++ b/agents/windows/wmitest.cc
@@ -95,7 +95,11 @@ int main(int argc, char **argv) {
try {
if (strcmp(argv[1], "tree") == 0) {
- print_namespace(L"Root");
+ if (argc < 3) {
+ print_namespace(L"Root");
+ } else {
+ print_namespace(to_utf16(argv[2]).c_str());
+ }
}
if (strcmp(argv[1], "csv") == 0) {