Skip to content

Commit

Permalink
Merge pull request #51 from david-guenault/master
Browse files Browse the repository at this point in the history
Fix #47 get period name instead of period object
  • Loading branch information
David GUENAULT committed Apr 6, 2015
2 parents c4e763a + 4c1ea5b commit e4197b4
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 e4197b4

Please sign in to comment.