#NEWLINE# def get_device_path( self , blockdevice_id ) : #NEWLINE# #INDENT# '\n        Get device path for the EBS volume corresponding to the given\n        block device.\n\n        :param unicode blockdevice_id: EBS UUID for the volume to look up.\n\n        :returns: A ``FilePath`` for the device.\n        :raises UnknownVolume: If the supplied ``blockdevice_id`` does not\n            exist.\n        :raises UnattachedVolume: If the supplied ``blockdevice_id`` is\n            not attached to a host.\n        ' #NEWLINE# ebs_volume = self . _get_ebs_volume ( blockdevice_id ) #NEWLINE# volume = _blockdevicevolume_from_ebs_volume ( ebs_volume ) #NEWLINE# if ( not volume . attached_to ) : #NEWLINE# #INDENT# raise UnattachedVolume ( blockdevice_id ) #NEWLINE# #UNINDENT# compute_instance_id = self . compute_instance_id ( ) #NEWLINE# if ( volume . attached_to != compute_instance_id ) : #NEWLINE# #INDENT# raise Exception ( 'Volume is attached to {}, not to {}' . format ( volume . attached_to , compute_instance_id ) ) #NEWLINE# #UNINDENT# return _expected_device ( ebs_volume . attachments [ 0 ] [ 'Device' ] )