mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
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)
|
if (ret != -1)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (vm.count("description"));
|
if (vm.count("description"))
|
||||||
printInfo.service = GetServiceByDescription(vm["service"].as<std::wstring>());
|
printInfo.service = GetServiceByDescription(vm["service"].as<std::wstring>());
|
||||||
|
|
||||||
if (printInfo.service.empty()) {
|
if (printInfo.service.empty()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user