[icinga-checkins] icinga.org: icingaweb2-module-logstash/master: Remove test code

git at icinga.org git at icinga.org
Fri Feb 5 14:05:47 CET 2016


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

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Fri Jun 19 11:59:04 2015 +0200

Remove test code

---

 application/controllers/EventController.php |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/application/controllers/EventController.php b/application/controllers/EventController.php
index fdb79a7..4231fe0 100644
--- a/application/controllers/EventController.php
+++ b/application/controllers/EventController.php
@@ -35,9 +35,7 @@ class Logstash_EventController extends Controller
         $this->view->fields = $this->_getParam('fields');
         $this->view->fieldlist = array();
         if ($this->view->fields) {
-            $split = preg_split('/\s*;\s*/', $this->view->fields, 2);
-            $this->view->fieldlist = preg_split('/\s*[,]\s*/', $split[0]);
-            $this->view->detaillist = count($split) > 1 ? preg_split('/\s*[,]\s*/', $split[1]) : [];
+            $this->view->fieldlist = preg_split('/\s*[,]\s*/', $this->view->fields);
         }
 
         $search = new Search($this->elasticsearch_url."/".$this->index_pattern);



More information about the icinga-checkins mailing list