Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 72a262b608a0b891dcf8243e420514e4477e882c
https://github.com/tribe29/checkmk/commit/72a262b608a0b891dcf8243e420514e44…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2020-05-05 (Tue, 05 May 2020)
Changed paths:
M cmk/gui/plugins/wato/omd_configuration.py
M cmk/gui/watolib/activate_changes.py
M cmk/gui/watolib/config_sync.py
M cmk/gui/watolib/sites.py
M tests/unit/cmk/gui/watolib/test_activate_changes.py
M tests/unit/cmk/gui/watolib/test_config_sync.py
Log Message:
-----------
Refactor ReplicationPath.path to site relative paths
Now we have different base directories involved, all with the same
structure below:
- The site directory
- The site config replication directory (var/check_mk/site_configs/[site])
Changing the ReplicationPath.path to ReplicationPath.site_path, which is
now a relative path to these base directories simplifies the code. No
magic ad-hoc relative path computations are needed anymore. Each call
site can now concatenate the path parts as needed.
Change-Id: Ide4f054f586213a0a526b32d660ab0958bd79b2d