def __getitem__(self, index):
        if index != 0:
            raise Exception('Only [0] index operation is allowed on HostsContainer instance.')

        hosts = list(self._all)

        if len(hosts) == 0:
            raise IndexError

        return self._new_1(hosts[index])
Wrapper around L{utils.text.MatchNameComponent}.
dataset/ETHPy150Open jonathanslenders/python-deployer/deployer/host_container.py/HostsContainer.__getitem__--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/config/__init__.py/_MatchNameComponentIgnoreCase