mirror of https://github.com/Icinga/icinga2.git
Merge pull request #5728 from Icinga/fix/check_service
Fix check_service not working with names
This commit is contained in:
commit
17a246f929
|
@ -38,7 +38,7 @@ INT wmain(INT argc, WCHAR **argv)
|
|||
if (ret != -1)
|
||||
return ret;
|
||||
|
||||
if (vm.count("description"));
|
||||
if (vm.count("description"))
|
||||
printInfo.service = GetServiceByDescription(vm["service"].as<std::wstring>());
|
||||
|
||||
if (printInfo.service.empty()) {
|
||||
|
|
Loading…
Reference in New Issue