Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/n/o/nova-HEAD/nova/compute/manager.py   nova(Download)
 
            device_name = compute_utils.get_device_name_for_instance(
                    context, instance, bdms, device)
 
            # NOTE(vish): create bdm here to avoid race condition

src/n/o/nova-gce-HEAD/nova/compute/manager.py   nova-gce(Download)
        def do_reserve():
            result = compute_utils.get_device_name_for_instance(context,
                                                                instance,
                                                                device)
            # NOTE(vish): create bdm here to avoid race condition

src/n/o/nova-HEAD/nova/tests/compute/test_compute_utils.py   nova(Download)
    def _validate_device(self, device=None):
        bdms = block_device_obj.BlockDeviceMappingList.get_by_instance_uuid(
                self.context, self.instance['uuid'])
        return compute_utils.get_device_name_for_instance(
                self.context, self.instance, bdms, device)

src/n/o/nova-gce-HEAD/nova/tests/compute/test_compute_utils.py   nova-gce(Download)
    def _validate_device(self, device=None):
        return compute_utils.get_device_name_for_instance(self.context,
                                                          self.instance,
                                                          device)