]> granicus.if.org Git - icinga2/commitdiff
Add plural_name field to /v1/types
authorGunnar Beutner <gunnar@beutner.name>
Sat, 29 Aug 2015 10:05:44 +0000 (12:05 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Sat, 29 Aug 2015 10:05:44 +0000 (12:05 +0200)
fixes #10038

lib/remote/typequeryhandler.cpp

index aea42c124f4481986cea2ab7e42b625e0fd6a45c..339347afbb222776c07503ab2b4234c597605dcb 100644 (file)
@@ -106,6 +106,7 @@ bool TypeQueryHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& requ
 
                Dictionary::Ptr resultAttrs = new Dictionary();
                result1->Set("name", obj->GetName());
+               result1->Set("plural_name", obj->GetPluralName());
                if (obj->GetBaseType())
                        result1->Set("base", obj->GetBaseType()->GetName());
                result1->Set("abstract", obj->IsAbstract());