def find_agent_host_id(this_host):
    """Returns the neutron agent host id for RHEL-OSP6 HA setup."""

    host_id = this_host
    try:
        for root, dirs, files in os.walk('/run/resource-agents'):
            for fi in files:
                if 'neutron-scale-' in fi:
                    host_id = 'neutron-n-' + fi.split('-')[2]
                    break
        return host_id
    except __HOLE__:
        return host_id
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/apps/saf/common/utils.py/find_agent_host_id