Merge pull request #5728 from Icinga/fix/check_service

Fix check_service not working with names
This commit is contained in:
Michael Friedrich 2017-11-07 18:17:14 +01:00 committed by GitHub
commit 17a246f929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {