def _run_discovery_plugin(name, args):
    """
    Run the host discovery plugin
    :param name: plugin module name
    :param args: attribute namespace
    :return: discovered hosts list
    """
    try:
        this_plugin = __import__(name, globals(), locals(),
                                 ['HostDiscoveryPlugin'])
    except __HOLE__ as e:
        lg.error("Can't load module %s: %s" % (name, e))
        raise

    plugin=this_plugin.HostDiscoveryPlugin()
    return plugin.get_hosts(args)
dataset/ETHPy150Open gooddata/smoker/smoker/client/cli.py/_run_discovery_plugin