Module: check_mk
Branch: master
Commit: 5e2d3153ae5d479e7ed6a412d4a5765b2bc7db9c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5e2d3153ae5d47…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Jul 12 08:41:29 2018 +0200
Fixed a few old-style-class warnings.
Change-Id: I36e57fdccf7cb32340df63dc88de7aa6bf7b8531
---
agents/special/agent_netapp | 6 +++---
agents/special/agent_ucs_bladecenter | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/agents/special/agent_netapp b/agents/special/agent_netapp
index b900b1e..34551a9 100755
--- a/agents/special/agent_netapp
+++ b/agents/special/agent_netapp
@@ -199,7 +199,7 @@ else:
reparsed = minidom.parseString(rough_string)
return reparsed.toprettyxml(indent="\t")
- class ErrorMessages():
+ class ErrorMessages(object):
def __init__(self):
self.messages = set()
@@ -217,7 +217,7 @@ else:
def format_messages(self):
return "\n".join(self.messages)
- class NetAppConnection():
+ class NetAppConnection(object):
def __init__(self, hostname, user, password):
self.hostname = hostname
self.user = user
@@ -376,7 +376,7 @@ else:
# NetApp Response Oject, holds the actual content in the NetAppNode member variable
- class NetAppResponse():
+ class NetAppResponse(object):
def __init__(self, response):
self.content = None
self.reason = None
diff --git a/agents/special/agent_ucs_bladecenter b/agents/special/agent_ucs_bladecenter
index 8459513..3983fed 100755
--- a/agents/special/agent_ucs_bladecenter
+++ b/agents/special/agent_ucs_bladecenter
@@ -92,7 +92,7 @@ def get_pattern(pattern, line):
p = re.compile(pattern)
return p.findall(line)
-class Server:
+class Server(object):
def __init__(self, host_address):
self.netloc = host_address
self.session_handle = requests.Session()