[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

Gerhard Lausser gerhard.lausser at consol.de
Tue Feb 28 22:15:52 UTC 2012


The following commit has been merged in the debian/master branch:
commit e80c98c4e12b1a6a12eab159e00e1393b96c908f
Author: Gerhard Lausser <gerhard.lausser at consol.de>
Date:   Mon Jan 23 13:03:18 2012 +0100

    Fix bugs in livestatus Downtime attributes

diff --git a/shinken/modules/livestatus_broker/mapping.py b/shinken/modules/livestatus_broker/mapping.py
index 6fb5646..2f930c9 100644
--- a/shinken/modules/livestatus_broker/mapping.py
+++ b/shinken/modules/livestatus_broker/mapping.py
@@ -2193,7 +2193,7 @@ livestatus_attribute_map = {
         },
         'is_service': {
             'description': '0, if this entry is for a host, 1 if it is for a service',
-            'function': lambda item, req: getattr(item, 'service_description'),
+            'function': lambda item, req: hasattr(item.ref, 'service_description'),
             'datatype': bool,
         },
         'service_accept_passive_checks': {
@@ -2393,7 +2393,7 @@ livestatus_attribute_map = {
         },
         'start_time': {
             'description': 'The start time of the downtime as UNIX timestamp',
-            'function': lambda item, req: item.None,  # REPAIRME
+            'function': lambda item, req: item.start_time,
             'datatype': int,
         },
         'triggered_by': {

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list