Module: check_mk
Branch: master
Commit: 886de40d9b9e45163967bb7dde056d1bf459383b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=886de40d9b9e45…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Fri Jul 15 16:28:48 2016 +0200
refactoring to fix pylint messages
---
modules/check_mk_base.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 32beba8..f671fb0 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1540,10 +1540,9 @@ def do_all_checks_on_host(hostname, ipaddress, only_check_types =
None, fetch_ag
else:
agent_version = None
- error_sections = list(error_sections)
- error_sections.sort()
+ error_section_list = sorted(list(error_sections))
- return agent_version, num_success, error_sections, ", ".join(problems)
+ return agent_version, num_success, error_section_list, ", ".join(problems)
# Create a crash dump with a backtrace and the agent output.