]> granicus.if.org Git - icinga2/commitdiff
CLI: Fix object name in 'object list'
authorMichael Friedrich <michael.friedrich@netways.de>
Wed, 15 Oct 2014 12:29:00 +0000 (14:29 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Wed, 15 Oct 2014 12:33:55 +0000 (14:33 +0200)
refs #7251

lib/cli/objectlistcommand.cpp

index 08d0d3f65f80ef0790243d07505e628bba189f63..7418d830161518d82ec0f4da991aac46ae7e3893 100644 (file)
@@ -133,7 +133,7 @@ void ObjectListCommand::ReadObject(const String& message, std::map<String, int>&
        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);