From: Michael Friedrich Date: Wed, 15 Oct 2014 12:29:00 +0000 (+0200) Subject: CLI: Fix object name in 'object list' X-Git-Tag: v2.2.0~383 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32feea8d7f1d0a469eda2abc20dea41bbe88a749;p=icinga2 CLI: Fix object name in 'object list' refs #7251 --- diff --git a/lib/cli/objectlistcommand.cpp b/lib/cli/objectlistcommand.cpp index 08d0d3f65..7418d8301 100644 --- a/lib/cli/objectlistcommand.cpp +++ b/lib/cli/objectlistcommand.cpp @@ -133,7 +133,7 @@ void ObjectListCommand::ReadObject(const String& message, std::map& else msgbuf << "Object '"; - msgbuf << "\x1b[1;37m" << name << "\x1b[0m" << "'"; //light gray + msgbuf << "\x1b[1;37m" << properties->Get("__name") << "\x1b[0m" << "'"; //light gray msgbuf << " of type '" << "\x1b[1;34m" << type << "\x1b[0m" << "':\n"; //blue msgbuf << FormatProperties(properties, debug_hints, 2);