Module: check_mk
Branch: master
Commit: 7b995b1852a1f7b885167f5e423c7d00521e2b36
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7b995b1852a1f7…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Nov 27 11:20:06 2015 +0100
Wato: move creation of backup_domains into wato.py, fix order dependency
---
web/htdocs/wato.py | 3 ++-
web/plugins/wato/backup_domains.py | 2 --
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 2e3a405..7d578e3 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -20418,7 +20418,7 @@ def load_plugins():
g_rulespec_groups = []
# Directories and files to synchronize during replication
- global replication_paths, backup_paths
+ global replication_paths, backup_paths, backup_domains
replication_paths = [
( "dir", "check_mk", root_dir ),
( "dir", "multisite", multisite_dir ),
@@ -20439,6 +20439,7 @@ def load_plugins():
# this?
# ( "dir", "autochecks", defaults.autochecksdir ),
]
+ backup_domains = {}
register_builtin_host_tags()
diff --git a/web/plugins/wato/backup_domains.py b/web/plugins/wato/backup_domains.py
index a1c9c3a..bbaeb2e 100644
--- a/web/plugins/wato/backup_domains.py
+++ b/web/plugins/wato/backup_domains.py
@@ -24,8 +24,6 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-backup_domains = {}
-
# Temporary variable which stores settings during the backup process
backup_perfdata_enabled = True
def performancedata_restore(pre_restore = True):