def describe_volumes(kwargs=None, call=None):
 if (call != 'function'):
  log.error('The describe_volumes function must be called with -f or --function.')
  return False
 if (not kwargs):
  kwargs = {}
 params = {'Action': 'DescribeVolumes'}
 if ('volume_id' in kwargs):
  volume_id = kwargs['volume_id'].split(',')
  for (volume_index, volume_id) in enumerate(volume_id):
   params['VolumeId.{0}'.format(volume_index)] = volume_id
 log.debug(params)
 data = aws.query(params, return_url=True, location=get_location(), provider=get_provider(), opts=__opts__, sigver='4')
 return data

def describe_volumes ( kwargs = None , call = None ) : if ( call != 'function' ) : log . error ( 'The describe_volumes function must be called with -f or --function.' ) return False if ( not kwargs ) : kwargs = { } params = { 'Action' : 'DescribeVolumes' } if ( 'volume_id' in kwargs ) : volume_id = kwargs [ 'volume_id' ] . split ( ',' ) for ( volume_index , volume_id ) in enumerate ( volume_id ) : params [ 'VolumeId.{0}' . format ( volume_index ) ] = volume_id log . debug ( params ) data = aws . query ( params , return_url = True , location = get_location ( ) , provider = get_provider ( ) , opts = __opts__ , sigver = '4' ) return data
describe a volume volume_id one or more volume ids .