From 61a9eb13c19d2ef76cbb3d34fb28f65b052bb48d Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Tue, 7 Nov 2017 17:45:01 +0100 Subject: [PATCH] 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 --- plugins/check_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {