def repository_exists(client, repository=None):
 if (not repository):
  raise MissingArgument('No value for "repository" provided')
 test_result = get_repository(client, repository)
 if (repository in test_result):
  logger.debug('Repository {0} exists.'.format(repository))
  return True
 else:
  logger.debug('Repository {0} not found...'.format(repository))
  return False

def repository_exists ( client , repository = None ) : if ( not repository ) : raise MissingArgument ( 'No value for "repository" provided' ) test_result = get_repository ( client , repository ) if ( repository in test_result ) : logger . debug ( 'Repository {0} exists.' . format ( repository ) ) return True else : logger . debug ( 'Repository {0} not found...' . format ( repository ) ) return False
verify the existence of a repository :arg client: an :class:elasticsearch .