mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 07:04:37 +02:00
parent
f07fb97264
commit
cdfd4d6da8
@ -213,6 +213,13 @@ int NodeUpdateConfigCommand::Run(const boost::program_options::variables_map& vm
|
|||||||
|
|
||||||
Dictionary::Ptr host_services = new Dictionary();
|
Dictionary::Ptr host_services = new Dictionary();
|
||||||
|
|
||||||
|
if (NodeUtility::CheckAgainstBlackAndWhiteList("blacklist", node_name, "*", Empty) &&
|
||||||
|
!NodeUtility::CheckAgainstBlackAndWhiteList("whitelist", node_name, "*", Empty)) {
|
||||||
|
Log(LogWarning, "cli")
|
||||||
|
<< "Skipping node '" << node_name << "' on blacklist.";
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Log(LogInformation, "cli")
|
Log(LogInformation, "cli")
|
||||||
<< "Adding host '" << zone << "' to the repository.";
|
<< "Adding host '" << zone << "' to the repository.";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user