def get_agent_types_by_host(context, host):
 agent_types = []
 core_plugin = directory.get_plugin()
 if utils.is_extension_supported(core_plugin, 'agent'):
  agents = core_plugin.get_agents(context.elevated(), filters={'host': [host]})
  agent_types = [a['agent_type'] for a in agents]
 return agent_types

def get_agent_types_by_host ( context , host ) : agent_types = [ ] core_plugin = directory . get_plugin ( ) if utils . is_extension_supported ( core_plugin , 'agent' ) : agents = core_plugin . get_agents ( context . elevated ( ) , filters = { 'host' : [ host ] } ) agent_types = [ a [ 'agent_type' ] for a in agents ] return agent_types
return the agent types registered on the host .