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)',