From: Jean Flach Date: Tue, 7 Nov 2017 16:45:01 +0000 (+0100) Subject: Fix check_service not working with names X-Git-Tag: v2.8.0~18^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=refs%2Fpull%2F5728%2Fhead;p=icinga2 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 --- diff --git a/plugins/check_service.cpp b/plugins/check_service.cpp index a052881c6..f5f0f463b 100644 --- a/plugins/check_service.cpp +++ b/plugins/check_service.cpp @@ -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()); if (printInfo.service.empty()) {