def get_all_volumes(volume_ids=None, filters=None, return_objs=False, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  ret = conn.get_all_volumes(volume_ids=volume_ids, filters=filters)
  return (ret if return_objs else [r.id for r in ret])
 except boto.exception.BotoServerError as e:
  log.error(e)
  return []

def get_all_volumes ( volume_ids = None , filters = None , return_objs = False , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : ret = conn . get_all_volumes ( volume_ids = volume_ids , filters = filters ) return ( ret if return_objs else [ r . id for r in ret ] ) except boto . exception . BotoServerError as e : log . error ( e ) return [ ]
get a list of all ebs volumes .