mirror of https://github.com/Icinga/icinga2.git
parent
4d7caeabab
commit
7d2f60a00e
|
@ -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
|
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";
|
String features_enabled_dir = Application::GetSysconfDir() + "/icinga2/features-enabled";
|
||||||
|
|
||||||
if (ap.empty()) {
|
if (ap.empty()) {
|
||||||
|
@ -104,7 +100,5 @@ int FeatureDisableCommand::Run(const boost::program_options::variables_map& vm,
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* _WIN32 */
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue