[icinga-checkins] icinga.org: icingaweb2-module-elasticsearch/master: RestApiClient: Return the response in method delete()

git at icinga.org git at icinga.org
Mon May 16 11:11:03 CEST 2016


Module: icingaweb2-module-elasticsearch
Branch: master
Commit: de78464b6f55843edf4b9fa9f3fc014d8204b045
URL:    https://git.icinga.org/?p=icingaweb2-module-elasticsearch.git;a=commit;h=de78464b6f55843edf4b9fa9f3fc014d8204b045

Author: Johannes Meyer <johannes.meyer at netways.de>
Date:   Mon May 16 11:10:26 2016 +0200

RestApiClient: Return the response in method delete()

---

 library/Elasticsearch/RestApi/RestApiClient.php |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/library/Elasticsearch/RestApi/RestApiClient.php b/library/Elasticsearch/RestApi/RestApiClient.php
index 1ec29db..8d7549a 100644
--- a/library/Elasticsearch/RestApi/RestApiClient.php
+++ b/library/Elasticsearch/RestApi/RestApiClient.php
@@ -498,6 +498,8 @@ class RestApiClient implements Extensible, Reducible, Selectable, Updatable
      * @param   Filter          $filter
      * @param   UrlParams       $params     Additional URL parameters to add to the request
      *
+     * @return  array   The response for the requested deletion
+     *
      * @throws  StatementException
      *
      * @todo    Add support for bulk deletions
@@ -569,6 +571,8 @@ class RestApiClient implements Extensible, Reducible, Selectable, Updatable
                 $this->renderErrorMessage($response)
             );
         }
+
+        return $response->json();
     }
 
     /**



More information about the icinga-checkins mailing list