Module: check_mk
Branch: master
Commit: c524124d06feb483222bc8bad5fa02d4b22270a0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c524124d06feb4…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Mar 14 16:36:27 2018 +0100
agent_storeonce: fixed pylint errors
Change-Id: I88b584b378df0c9c126d9d794f9fef5e61f2f597
---
agents/special/agent_storeonce | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/agents/special/agent_storeonce b/agents/special/agent_storeonce
index 7da76f8..ff484c7 100755
--- a/agents/special/agent_storeonce
+++ b/agents/special/agent_storeonce
@@ -28,7 +28,7 @@ import re
import sys, getopt
import requests
import xml.etree.ElementTree as ET
-from requests.packages.urllib3.exceptions import InsecureRequestWarning
+from requests.packages.urllib3.exceptions import InsecureRequestWarning # pylint:
disable=import-error
def usage():
sys.stderr.write("""Check_MK StoreOnce
@@ -75,7 +75,7 @@ for o,a in opts:
def query(url):
if opt_cert == False:
- requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
+ requests.packages.urllib3.disable_warnings(InsecureRequestWarning) # pylint:
disable=no-member
response = requests.get(url, auth = (args_dict["username"],
args_dict["password"]), verify=opt_cert)
raw_xml = response.text
# Remove namespace nonsense
@@ -86,10 +86,7 @@ def query(url):
output_lines = []
def output(line):
- if type(line) not in [str, unicode]:
- output_lines.append(pprint.pformat(line))
- else:
- output_lines.append(line)
+ output_lines.append(line)
def process_cluster_info():