Module: check_mk
Branch: master
Commit: 82de9031c0bc818a9854eef690860705688df53f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=82de9031c0bc81…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Mar 14 16:33:44 2018 +0100
agent_3par: suppressed pylint errors
Change-Id: I8a36090deeefb2c56850e1347631bd09471ed67f
---
agents/special/agent_3par | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/agents/special/agent_3par b/agents/special/agent_3par
index 55bd78c..d949983 100755
--- a/agents/special/agent_3par
+++ b/agents/special/agent_3par
@@ -121,9 +121,9 @@ except requests.exceptions.RequestException as e:
sys.exit(1)
# Status code should be 201.
-if not req.status_code == requests.codes.CREATED:
+if not req.status_code == requests.codes.CREATED: # pylint: disable=no-member
sys.stderr.write("Wrong status code: %s. Expected: %s \n" %
(req.status_code,
- requests.codes.CREATED))
+ requests.codes.CREATED)) #
pylint: disable=no-member
sys.exit(1)
else:
try:
@@ -153,7 +153,7 @@ req = requests.delete("%s/credentials/%s" % (url,
headers["X-HP3PAR-WSAPI-Sessio
timeout=10,
verify=verify)
-if not req.status_code == requests.codes.OK:
+if not req.status_code == requests.codes.OK: # pylint: disable=no-member
sys.stderr.write("Wrong status code: %s. Expected: %s \n" %
(req.status_code,
- requests.codes.OK))
+ requests.codes.OK)) #
pylint: disable=no-member
sys.exit(1)