'This filter matches a device string /dev/sdX to /dev/xvdX
It will then return the AWS volume ID'

@staticmethod
def translate_volume_name(volumes, target_volume):

    for vol in volumes:
        translated_name = vol['attachment_set']['device'].replace('/dev/sd', '/dev/xvd')
        if target_volume.startswith(translated_name):
            return vol['id']
    return None
