[checkmk-commits] Views: Fixed use of add_columns during livestatus queries

Lars Michelsen lm at mathias-kettner.de
Fri Jun 30 13:11:12 CEST 2017


Module: check_mk
Branch: master
Commit: 162d4b38d11410e8884cab23278bf0b5d30fcb52
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=162d4b38d11410e8884cab23278bf0b5d30fcb52

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Fri Jun 30 13:05:54 2017 +0200

Views: Fixed use of add_columns during livestatus queries

Change-Id: I7031005872e6927d646c2c313db50feec413b99a

---

 web/htdocs/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index d1c0bd6..282e6a3 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -2245,7 +2245,7 @@ def query_data(datasource, columns, add_columns, add_headers,
 
 def do_query_data(query, columns, add_columns, merge_column,
                   add_headers, only_sites, limit, auth_domain):
-    query += "Columns: %s\n" % " ".join(columns)
+    query += "Columns: %s\n" % " ".join(columns + add_columns)
     query += add_headers
     sites.live().set_prepend_site(True)
 



More information about the checkmk-commits mailing list