def ListInstances(self, hvparams=None):
    return [name for name in os.listdir(self._ROOT_DIR)
            if self._IsDirLive(utils.PathJoin(self._ROOT_DIR, name))]
Get the codes.
dataset/ETHPy150Open ganeti/ganeti/lib/hypervisor/hv_chroot.py/ChrootManager.ListInstances--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/Categorical._get_codes