Module: check_mk
Branch: master
Commit: 205b3e40b3b7874e38b47e9bb5a8b9328513ae4d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=205b3e40b3b787…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Mar 6 11:32:47 2018 +0100
added missing license header
Change-Id: I248e729ae538dea3d5fe28c2c175c2e1d322bd2b
---
web/htdocs/gui_background_job.py | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/gui_background_job.py b/web/htdocs/gui_background_job.py
index 91d363c..e667175 100644
--- a/web/htdocs/gui_background_job.py
+++ b/web/htdocs/gui_background_job.py
@@ -1,4 +1,28 @@
-#!/usr/bin/env python
+#!/usr/bin/python
+# -*- encoding: utf-8; py-indent-offset: 4 -*-
+# +------------------------------------------------------------------+
+# | ____ _ _ __ __ _ __ |
+# | / ___| |__ ___ ___| | __ | \/ | |/ / |
+# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / |
+# | | |___| | | | __/ (__| < | | | | . \ |
+# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ |
+# | |
+# | Copyright Mathias Kettner 2014 mk(a)mathias-kettner.de |
+# +------------------------------------------------------------------+
+#
+# This file is part of Check_MK.
+# The official homepage is at http://mathias-kettner.de/check_mk.
+#
+# check_mk is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation in version 2. check_mk is distributed
+# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
+# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE. See the GNU General Public License for more de-
+# tails. You should have received a copy of the GNU General Public
+# License along with GNU Make; see the file COPYING. If not, write
+# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+# Boston, MA 02110-1301 USA.
import os
import config
@@ -15,7 +39,6 @@ import cmk.store
from background_job import JobStatus
-
loaded_with_language = False
def load_plugins(force):
global loaded_with_language
Module: check_mk
Branch: master
Commit: 0bb709e5f1884c82460b51cc72edb5979bfb3608
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0bb709e5f1884c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 6 08:25:22 2018 +0100
Completely moved check variables to check contexts
* The check variables are not duplicated in the global context of
the checks.py anymore.
* The check variables still need to be added to the config.py and
default_config.py context for config loading. At the end of
the configuration loading these are unset in both namespaces
and stored in the relevant check contexts.
* Cleaned up side effects on config.py during check loading. The
loading of the checks does not modify the check variables in
the config.py nor default_config.py anymore.
Change-Id: I1d10d1f7fdc5f04cf22821754adfd3a54b04aee8
---
cmk_base/automations/check_mk.py | 2 +-
cmk_base/checks.py | 88 ++++++++++++++++++++++++++++------------
cmk_base/config.py | 28 ++++++-------
cmk_base/discovery.py | 15 ++++---
tests/cmk_base/test_checks.py | 6 ++-
5 files changed, 88 insertions(+), 51 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=0bb709e5f1…