From 4c1ea5b0cd9192dbe6569e5622fce1b06ada867c Mon Sep 17 00:00:00 2001 From: David GUENAULT Date: Sat, 4 Apr 2015 10:25:24 +0200 Subject: [PATCH] Fix #47 get period name instead of period object Signed-off-by: David GUENAULT --- module/mapping.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/mapping.py b/module/mapping.py index ffaab16..73808d6 100644 --- a/module/mapping.py +++ b/module/mapping.py @@ -1726,7 +1726,7 @@ def get_livestatus_full_name(item, req): }, 'host_notification_period': { 'description': 'The time period in which the contact will be notified about host problems', - 'function': lambda item, req: item.host_notification_period, + 'function': lambda item, req: item.host_notification_period.get_name(), }, 'host_notifications_enabled': { 'description': 'Whether the contact will be notified about host problems in general (0/1)', @@ -1763,7 +1763,7 @@ def get_livestatus_full_name(item, req): }, 'service_notification_period': { 'description': 'The time period in which the contact will be notified about service problems', - 'function': lambda item, req: item.service_notification_period, + 'function': lambda item, req: item.service_notification_period.get_name(), }, 'service_notifications_enabled': { 'description': 'Whether the contact will be notified about service problems in general (0/1)',