Module: check_mk
Branch: master
Commit: b4e0bd984fd23584fb93b6ca9300956643800dd9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b4e0bd984fd235…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Apr 19 10:47:01 2017 +0200
replication_paths, backup_paths and backup_domains can now be added in WATO plugins again
Change-Id: I7d967e52fcaf44c0bad4bd15324cfaeb99c9220e
---
web/htdocs/watolib.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 60a8ff7..fe11289 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -95,7 +95,8 @@ def initialize_before_loading_plugins():
# Directories and files to synchronize during replication
global replication_paths
- replication_paths = [
+ del replication_paths[:]
+ replication_paths += [
( "dir", "check_mk", wato_root_dir,
["sitespecific.mk"]),
( "dir", "multisite", multisite_dir,
["sitespecific.mk"] ),
( "file", "htpasswd", cmk.paths.htpasswd_file ),
@@ -111,6 +112,7 @@ def initialize_before_loading_plugins():
# Directories and files for backup & restore
global backup_paths
+ del backup_paths[:]
backup_paths = replication_paths + [
( "file", "sites", sites_mk)
]
@@ -124,7 +126,7 @@ def initialize_before_loading_plugins():
backup_paths.append(("dir", "mkeventd",
mkeventd_config_dir))
global backup_domains
- backup_domains = {}
+ backup_domains.clear()
def init_watolib_datastructures():
if config.wato_use_git: