old_contents: # -*- coding: utf-8 -*-
  '''
  Send events covering service status
  '''
  
  
  def beacon(config):
      '''
      Scan for the configured services and fire events
      '''
      ret = {}
      for service in config:
          ret[service] = __salt__['service.status'](service)
      return ret
  
new_contents: # -*- coding: utf-8 -*-
  '''
  Send events covering service status
  '''
  
  import logging
  log=logging.getLogger(__name__)
  
  def beacon(config):
      '''
      Scan for the configured services and fire events
  
      Example Config
  
      .. code-block:: yaml
  
          beacons:
            service:
              salt-master:
              mysql:
  
  
      The config above sets up beacons to check for
      the salt-master and mysql services.
      '''
      ret = []
      for service in config:
          ret_dict = {}
          ret_dict[service] = __salt__['service.status'](service)
          ret.append(ret_dict)
  
      return ret
  
subject: Format ret list and update docstring for service beacon