def get_snapshot_data(client, repository=None):
 if (not repository):
  raise MissingArgument('No value for "repository" provided')
 try:
  return client.snapshot.get(repository=repository, snapshot='_all')['snapshots']
 except (elasticsearch.TransportError, elasticsearch.NotFoundError) as e:
  raise FailedExecution('Unable to get snapshot information from repository: {0}.  Error: {1}'.format(repository, e))

def get_snapshot_data ( client , repository = None ) : if ( not repository ) : raise MissingArgument ( 'No value for "repository" provided' ) try : return client . snapshot . get ( repository = repository , snapshot = '_all' ) [ 'snapshots' ] except ( elasticsearch . TransportError , elasticsearch . NotFoundError ) as e : raise FailedExecution ( 'Unable to get snapshot information from repository: {0}.  Error: {1}' . format ( repository , e ) )
get _all snapshots from repository and return a list .