mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-03 11:54:30 +02:00
Fix check_service not working with names
This change fixes check_service not working correctly when using descriptions instead of names. This should probably be in 2.8.0
This commit is contained in:
parent
36fddaf09b
commit
61a9eb13c1
@ -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