mirror of https://github.com/Icinga/icinga2.git
Merge pull request #5851 from Icinga/fix/checl-service-5849
Fix check_service returning Warning instead of Critical
This commit is contained in:
commit
1b81be8244
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue