]> granicus.if.org Git - icinga2/commitdiff
Implement "feature disable" for Windows
authorGunnar Beutner <gunnar@beutner.name>
Mon, 20 Oct 2014 18:19:01 +0000 (20:19 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 20 Oct 2014 18:19:01 +0000 (20:19 +0200)
fixes #7418

lib/cli/featuredisablecommand.cpp

index 111c9cc6d610a974a20cdc697a1a3440d6dbf2eb..54af35aa866c7a4cd88071ff70ff616a650d098e 100644 (file)
@@ -56,10 +56,6 @@ std::vector<String> FeatureDisableCommand::GetPositionalSuggestions(const String
  */
 int FeatureDisableCommand::Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const
 {
-#ifdef _WIN32
-       //TODO: Add Windows support
-       Log(LogInformation, "cli", "This command is not available on Windows.");
-#else
        String features_enabled_dir = Application::GetSysconfDir() + "/icinga2/features-enabled";
 
        if (ap.empty()) {
@@ -104,7 +100,5 @@ int FeatureDisableCommand::Run(const boost::program_options::variables_map& vm,
                return 1;
        }
 
-#endif /* _WIN32 */
-
        return 0;
 }