Module: check_mk
Branch: master
Commit: 2c05f679737a979eb562591dc9a50f4d3a9cc1c3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2c05f679737a97…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Jun 27 15:14:56 2018 +0200
6145 FIX Fixed "UnboundLocalError (local variable 'section_content'
referenced before assignment)" (Updates werk 6186)
Change-Id: I6d16b139ea548bce82b0c2e737c073b5cdfb3cb5
---
.werks/6145 | 11 +++++++++++
cmk_base/checking.py | 1 +
2 files changed, 12 insertions(+)
diff --git a/.werks/6145 b/.werks/6145
new file mode 100644
index 0000000..fa21445
--- /dev/null
+++ b/.werks/6145
@@ -0,0 +1,11 @@
+Title: Fixed "UnboundLocalError (local variable 'section_content' referenced
before assignment)" (Updates werk 6186)
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1530105159
+
+
diff --git a/cmk_base/checking.py b/cmk_base/checking.py
index 7762f9c..ba40093 100644
--- a/cmk_base/checking.py
+++ b/cmk_base/checking.py
@@ -235,6 +235,7 @@ def execute_check(multi_host_sections, hostname, ipaddress,
check_plugin_name, i
item_state.set_item_state_prefix(check_plugin_name, item)
dont_submit = False
+ section_content = None
try:
# TODO: There is duplicate code with discovery._execute_discovery(). Find a
common place!
try: