Skip to content

Commit

Permalink
Fix #47 get period name instead of period object
Browse files Browse the repository at this point in the history
Signed-off-by: David GUENAULT <[email protected]>
  • Loading branch information
dguenault committed Apr 4, 2015
1 parent c4e763a commit 4c1ea5b
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 4c1ea5b

Please sign in to comment.