node update-config: Check node name against blacklist too

fixes #8211
This commit is contained in:
Michael Friedrich 2015-02-09 18:56:17 +01:00
parent f07fb97264
commit cdfd4d6da8

View File

@ -213,6 +213,13 @@ int NodeUpdateConfigCommand::Run(const boost::program_options::variables_map& vm
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")
<< "Adding host '" << zone << "' to the repository.";