]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect parameter name for status queries
authorMichael Friedrich <michael.friedrich@netways.de>
Mon, 28 Sep 2015 13:19:01 +0000 (15:19 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 28 Sep 2015 13:19:01 +0000 (15:19 +0200)
refs #9088

lib/remote/statushandler.cpp

index 7ef739b7867119683327a3d269dba9946df7295f..d49a69f7e0fbb48e732bd7d1843c607c9387f3bf 100644 (file)
@@ -91,7 +91,7 @@ bool StatusHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& request
        params->Set("type", "Status");
 
        if (request.RequestUrl->GetPath().size() >= 3)
-               params->Set("name", request.RequestUrl->GetPath()[2]);
+               params->Set("status", request.RequestUrl->GetPath()[2]);
 
        std::vector<Value> objs = FilterUtility::GetFilterTargets(qd, params, user);