| 2101 | } |
| 2102 | |
| 2103 | void ExternalCommandProcessor::ChangeCustomHostVar(double, const std::vector<String>& arguments) |
| 2104 | { |
| 2105 | Host::Ptr host = Host::GetByName(arguments[0]); |
| 2106 | |
| 2107 | if (!host) |
| 2108 | BOOST_THROW_EXCEPTION(std::invalid_argument("Cannot change custom var for non-existent host '" + arguments[0] + "'")); |
| 2109 | |
| 2110 | Log(LogNotice, "ExternalCommandProcessor") |
| 2111 | << "Changing custom var '" << arguments[1] << "' for host '" << arguments[0] << "' to value '" << arguments[2] << "'"; |
| 2112 | |
| 2113 | host->ModifyAttribute("vars." + arguments[1], arguments[2]); |
| 2114 | } |
| 2115 | |
| 2116 | void ExternalCommandProcessor::ChangeCustomSvcVar(double, const std::vector<String>& arguments) |
| 2117 | { |
nothing calls this directly
no test coverage detected