diff --git a/lib/cli/troubleshootcollectcommand.cpp b/lib/cli/troubleshootcollectcommand.cpp index 83b84c69e..f243424f1 100644 --- a/lib/cli/troubleshootcollectcommand.cpp +++ b/lib/cli/troubleshootcollectcommand.cpp @@ -356,12 +356,12 @@ void TroubleshootCollectCommand::CheckObjectFile(const String& objectfile, InfoL continue; bool first = true; - /* + if (print) - ObjectListUtility::PrintObject(std::ostream(nullptr), first, message, type_count, "", ""); + ObjectListUtility::PrintObject(std::ostream(NULL), first, message, type_count, "", ""); else - ObjectListUtility::PrintObject(std::ostream(nullptr), first, message, type_count, "", ""); - */ + ObjectListUtility::PrintObject(std::ostream(NULL), first, message, type_count, "", ""); + Dictionary::Ptr object = JsonDecode(message); Dictionary::Ptr properties = object->Get("properties");