Merge pull request #5851 from Icinga/fix/checl-service-5849

Fix check_service returning Warning instead of Critical
This commit is contained in:
Jean Flach 2017-12-14 11:41:21 +01:00 committed by GitHub
commit 1b81be8244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -126,9 +126,7 @@ INT parseArguments(INT ac, WCHAR **av, po::variables_map& vm, printInfoStruct& p
printInfo.service = vm["service"].as<std::wstring>();
if (vm.count("warn")) {
printInfo.warn = true;
}
printInfo.warn = vm.count("warn");
if (vm.count("D"))
debug = TRUE;