mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Remove --include-objects option from troubleshoot for now
This commit is contained in:
parent
34bf4dac4b
commit
150353d88f
@ -46,7 +46,7 @@ String TroubleshootCommand::GetDescription(void) const
|
|||||||
|
|
||||||
String TroubleshootCommand::GetShortDescription(void) const
|
String TroubleshootCommand::GetShortDescription(void) const
|
||||||
{
|
{
|
||||||
return "Collect information for troubleshooting";
|
return "collect information for troubleshooting";
|
||||||
}
|
}
|
||||||
|
|
||||||
class TroubleshootCommand::InfoLog
|
class TroubleshootCommand::InfoLog
|
||||||
@ -375,6 +375,7 @@ bool TroubleshootCommand::CheckConfig(void)
|
|||||||
return DaemonUtility::ValidateConfigFiles(configs, Application::GetObjectsPath());
|
return DaemonUtility::ValidateConfigFiles(configs, Application::GetObjectsPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//print is supposed allow the user to print the object file
|
||||||
void TroubleshootCommand::CheckObjectFile(const String& objectfile, InfoLog& log, const bool print,
|
void TroubleshootCommand::CheckObjectFile(const String& objectfile, InfoLog& log, const bool print,
|
||||||
Dictionary::Ptr& logs, std::set<String>& configs)
|
Dictionary::Ptr& logs, std::set<String>& configs)
|
||||||
{
|
{
|
||||||
@ -404,7 +405,7 @@ void TroubleshootCommand::CheckObjectFile(const String& objectfile, InfoLog& log
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
std::stringstream sStream;
|
std::stringstream sStream;
|
||||||
|
|
||||||
ObjectListUtility::PrintObject(sStream, first, message, type_count, "", "");
|
ObjectListUtility::PrintObject(sStream, first, message, type_count, "", "");
|
||||||
|
|
||||||
Dictionary::Ptr object = JsonDecode(message);
|
Dictionary::Ptr object = JsonDecode(message);
|
||||||
@ -497,7 +498,7 @@ void TroubleshootCommand::InitParameters(boost::program_options::options_descrip
|
|||||||
visibleDesc.add_options()
|
visibleDesc.add_options()
|
||||||
("console,c", "print to console instead of file")
|
("console,c", "print to console instead of file")
|
||||||
("output,o", boost::program_options::value<std::string>(), "path to output file")
|
("output,o", boost::program_options::value<std::string>(), "path to output file")
|
||||||
("include-objects", "Print the whole objectfile (like `object list`)")
|
// ("include-objects", "Print the whole objectfile (like `object list`)") TODO
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user