code: def find_agent_host_id(this_host):
      
  
      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 IndexError:
          return host_id
docs: Returns the neutron agent host id for RHEL-OSP6 HA setup.