]> granicus.if.org Git - icinga2/commitdiff
Give only CLI warnings if feature is already disabled
authorBenedikt Heine <bebe@bebehei.de>
Wed, 11 Jan 2017 18:14:46 +0000 (19:14 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Thu, 2 Feb 2017 13:17:47 +0000 (14:17 +0100)
refs #121
refs #4909

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
lib/cli/featureutility.cpp

index f47d080cb576dbf3728382418e0ded5724bf5949..9de11d00044a72397e896a6f1e6193883b5bfcb1 100644 (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;
                }