def get_instance_for_uuid(self, uuid, project_id):
instance_name = self._inst_info_cache.get((uuid, project_id))<EOL>if instance_name:<EOL><INDENT>return instance_name<EOL><DEDENT>instances = self._get_instances_for_project(project_id)<EOL>for inst in instances:<EOL><INDENT>if inst.id.replace('<STR_LIT:->', '<STR_LIT>') == uuid:<EOL><INDENT>LOG.debug('<STR_LIT>', inst.name)<EOL>instance_name = inst.name<EOL>self._inst_info_cache[(uuid, project_id)] = instance_name<EOL>return instance_name<EOL><DEDENT><DEDENT>return instance_name<EOL>
Return instance name for given uuid of an instance and project.

        :uuid: Instance's UUID
        :project_id: UUID of project (tenant)