Give only CLI warnings if feature is already disabled

refs #121
refs #4909

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
This commit is contained in:
Benedikt Heine 2017-01-11 19:14:46 +01:00 committed by Michael Friedrich
parent 4658cb391e
commit 9337135249
1 changed files with 2 additions and 3 deletions

View File

@ -146,9 +146,8 @@ int FeatureUtility::DisableFeatures(const std::vector<std::string>& features)
String target = features_enabled_dir + "/" + feature + ".conf";
if (!Utility::PathExists(target) ) {
Log(LogCritical, "cli")
<< "Cannot disable feature '" << feature << "'. Target file '" << target << "' does not exist.";
errors.push_back(feature);
Log(LogWarning, "cli")
<< "Feature '" << feature << "' already disabled.";
continue;
}