Module: check_mk
Branch: master
Commit: 02377b4426fb919d40b412e0bf8f4520d7d1c57f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=02377b4426fb91…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed May 9 08:59:13 2018 +0200
Removed dead code.
Change-Id: I548b8f77382331ab5ef8ad9d9ed225b5de7fe0a2
---
cmk/ec/main.py | 6 ------
1 file changed, 6 deletions(-)
diff --git a/cmk/ec/main.py b/cmk/ec/main.py
index 0522cf9..a51188b 100644
--- a/cmk/ec/main.py
+++ b/cmk/ec/main.py
@@ -3136,7 +3136,6 @@ class Queries(object):
class Query(object):
_allowed_formats = set(["python", "plain", "json"])
- _allowed_headers = set(["OutputFormat", "Filter",
"Columns", "Limit"])
@staticmethod
def make(status_server, raw_query):
@@ -3204,11 +3203,6 @@ class QueryGET(Query):
header, argument = line.rstrip("\n").split(":", 1)
argument = argument.lstrip(" ")
- # TODO: Be compatible with livestatus: Only log the issue to the log
- #if header not in self._allowed_headers:
- # raise MKClientError("Invalid header: \"%s\" (allowed
are %s)" %
- # ",
".join(self._allowed_headers))
-
if header == "OutputFormat":
if argument not in self._allowed_formats:
raise MKClientError("Invalid output format \"%s\"
"