[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
Gerhard Lausser
gerhard.lausser at consol.de
Tue Feb 28 22:16:00 UTC 2012
The following commit has been merged in the debian/master branch:
commit a3000b144708c70dc34002512dfce87b5a982976
Author: Gerhard Lausser <gerhard.lausser at consol.de>
Date: Mon Jan 23 23:43:32 2012 +0100
Workaround for a strange error which made livestatus crash. In a unittest "GET servicegroups\nColumns: alias" is ok. In the running process, there is no such attribute alias.
diff --git a/shinken/modules/livestatus_broker/mapping.py b/shinken/modules/livestatus_broker/mapping.py
index ec7cef9..4456eb8 100644
--- a/shinken/modules/livestatus_broker/mapping.py
+++ b/shinken/modules/livestatus_broker/mapping.py
@@ -1557,7 +1557,7 @@ livestatus_attribute_map = {
},
'alias': {
'description': 'An alias of the service group',
- 'function': lambda item, req: item.alias,
+ 'function': lambda item, req: getattr(item, 'alias', 'will_be_fixed_soon'), # REPAIRME in test_livestatus there is an alias. in multisite there is none (Service has no attr. alias. hahaha liar)
},
'members': {
'description': 'A list of all members of the service group as host/service pairs',
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list