def open(self, window=None, exclusive=False):
        if self.is_open:
            raise DeviceOpenException('Device is already open.')

        self.is_open = True
Sets the specified host's ability to accept new instances.
dataset/ETHPy150Open ardekantur/pyglet/pyglet/input/base.py/Device.open--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/openstack/compute/hosts.py/HostController._set_enabled_status