Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #47 get period name instead of period object #51

Merged
merged 1 commit into from
Apr 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions module/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)',
Expand Down Expand Up @@ -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)',
Expand Down