@classmethod
    def _get_agent_process_id(cls, resource_id):
        agent_procs = bootstrap.container_instance.directory.find_by_value('/Agents', 'resource_id', resource_id)
        if agent_procs:
            if len(agent_procs) > 1:
                log.warn("Inconsistency: More than one agent registered for resource_id=%s: %s" % (
                    resource_id, agent_procs))
            agent_id = agent_procs[0].key
            return str(agent_id)
        return None
dataset/ETHPy150Open ooici/pyon/pyon/agent/simple_agent.py/SimpleResourceAgentClient._get_agent_process_id/original