Fix check_service not working with names 5728/head
authorJean Flach <jean-marcel.flach@icinga.com>
Tue, 7 Nov 2017 16:45:01 +0000 (17:45 +0100)
committerJean Flach <jean-marcel.flach@icinga.com>
Tue, 7 Nov 2017 16:47:35 +0000 (17:47 +0100)
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

index a052881c694f5a5aa128114df4fbad9e823982f8..f5f0f463b46ec5676f6bedc7a7b94cdf085a966f 100644 (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()) {