'Return calculated CPU map from HostInfo, by default showing 2
online CPUs.'

def getCPUMap(self):

    active_cpus = self.host_info.cpus
    total_cpus = (active_cpus + len(self.host_info.disabled_cpus_list))
    cpu_map = [(True if (cpu_num not in self.host_info.disabled_cpus_list) else False) for cpu_num in range(total_cpus)]
    return (total_cpus, cpu_map, active_cpus)
