Module: check_mk
Branch: master
Commit: b2a36dcc83f36d4f6b2657723a96f24a251b5f41
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b2a36dcc83f36d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Nov 28 08:52:10 2017 +0100
Always handle the piggyback data source last
Change-Id: I9bce9d2ff79f533d6f929f0ce4f133cb652c6563
---
cmk_base/data_sources/__init__.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmk_base/data_sources/__init__.py b/cmk_base/data_sources/__init__.py
index d9f028f..b48eeaf 100644
--- a/cmk_base/data_sources/__init__.py
+++ b/cmk_base/data_sources/__init__.py
@@ -207,7 +207,8 @@ class DataSources(object):
def get_data_sources(self):
- return sorted(self._sources.values(), key=lambda s: s.id())
+ # Always execute piggyback at the end
+ return sorted(self._sources.values(), key=lambda s: (isinstance(s,
PiggyBackDataSource), s.id()))
def set_max_cachefile_age(self, max_cachefile_age):