def attach_volume_to_device(self, volume_id, device_id):
        """Attaches the created Volume to a Device.
        """
        try:
            volume = self.manager.get_volume(volume_id)
            volume.attach(device_id)
        except packet.baseapi.Error as msg:
            raise PacketManagerException(msg)
        return volume
Attaches the created Volume to a Device.