mirror of https://github.com/Icinga/icinga2.git
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:
parent
4658cb391e
commit
9337135249
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue