def _send_notification(self, lease, ctx, events=[]): payload = notification_api.format_lease_payload(lease) for event in events: notification_api.send_lease_notification(ctx, payload, 'lease.%s' % event)