Cli: Fix black/whitelist remove command

refs #7526
This commit is contained in:
Michael Friedrich 2014-10-31 20:22:24 +01:00
parent ce4dcea21f
commit 6596192f2c
2 changed files with 0 additions and 9 deletions

View File

@ -122,14 +122,6 @@ void BlackAndWhitelistCommand::InitParameters(boost::program_options::options_de
*/
int BlackAndWhitelistCommand::Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const
{
String list_path = NodeUtility::GetRepositoryPath() + "/" + m_Type + ".list";
Dictionary::Ptr lists = make_shared<Dictionary>();
if (Utility::PathExists(list_path)) {
lists = Utility::LoadJsonFile(list_path);
}
if (m_Command == BlackAndWhitelistCommandAdd) {
if (!vm.count("zone")) {
Log(LogCritical, "cli", "At least the zone name filter is required!");

View File

@ -483,7 +483,6 @@ int NodeUtility::RemoveBlackAndWhiteList(const String& type, const String& zone_
return 1;
}
ObjectLock xlock(lists);
BOOST_FOREACH(int remove, remove_filters) {
lists->Remove(remove);
}