def _get_volume_tag(volume, name):
 if volume.tags:
  for tag in volume.tags:
   if (tag['Key'] == name):
    return tag['Value']
 raise TagNotFound(volume.id, name, volume.tags)

def _get_volume_tag ( volume , name ) : if volume . tags : for tag in volume . tags : if ( tag [ 'Key' ] == name ) : return tag [ 'Value' ] raise TagNotFound ( volume . id , name , volume . tags )
retrieve the tag from the specified volume with the specified name .