code: def top(**kwargs):
      '''
      Look up top data in Cobbler for a minion.
      '''
      url = __opts__['cobbler.url']
      user = __opts__['cobbler.user']
      password = __opts__['cobbler.password']
  
      minion_id = kwargs['opts']['id']
  
      log.info("Querying cobbler for information for %r", minion_id)
      try:
          server = salt.ext.six.moves.xmlrpc_client.Server(url, allow_none=True)
          if user:
              server.login(user, password)
          data = server.get_blended_data(None, minion_id)
      except Exception:
          log.exception(
              'Could not connect to cobbler.'
          )
          return {}
  
      return {data['status']: data['mgmt_classes']f top(**kwargs):
      '''
      Look up top data in Cobbler for a minion.
      '''
      url = __opts__['cobbler.url']
      user = __opts__['cobbler.user']
      password = __opts__['cobbler.password']
  
      minion_id = kwargs['opts']['id']
  
      log.info("Querying cobbler for information for %r", minion_id)
      try:
          server = salt.ext.six.moves.xmlrpc_client.Server(url, allow_none=True)
          if user:
              server.login(user, password)
          data = server.get_blended_data(None, minion_id)
      except Exception:
          log.exception(
              'Could not connect to cobbler.'
          )
          return {}
  
      return {data['status']: data['mgmt_classes']}
docs: Look up top data in Cobbler for a minion.