Implement "feature disable" for Windows

fixes #7418
This commit is contained in:
Gunnar Beutner 2014-10-20 20:19:01 +02:00
parent 4d7caeabab
commit 7d2f60a00e
1 changed files with 0 additions and 6 deletions

View 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;
}