code: def repository_verify(name, hosts=None, profile=None):
      '''
      .. versionadded:: 2017.7.0
  
      Obtain list of cluster nodes which successfully verified this repository.
  
      name
          Repository name
  
      CLI example::
  
          salt myminion elasticsearch.repository_verify testrepo
      '''
      es = _get_instance(hosts, profile)
  
      try:
          return es.snapshot.verify_repository(repository=name)
      except elasticsearch.NotFoundError:
          return None
      except elasticsearch.TransportError as e:
          raise CommandExecutionError("Cannot verify repository {0}, server returned code {1} with message {2}".format(name, e.status_code, e.error)f repository_verify(name, hosts=None, profile=None):
      '''
      .. versionadded:: 2017.7.0
  
      Obtain list of cluster nodes which successfully verified this repository.
  
      name
          Repository name
  
      CLI example::
  
          salt myminion elasticsearch.repository_verify testrepo
      '''
      es = _get_instance(hosts, profile)
  
      try:
          return es.snapshot.verify_repository(repository=name)
      except elasticsearch.NotFoundError:
          return None
      except elasticsearch.TransportError as e:
          raise CommandExecutionError("Cannot verify repository {0}, server returned code {1} with message {2}".format(name, e.status_code, e.error))
docs: .. versionadded:: 2017.7.0
  
      Obtain list of cluster nodes which successfully verified this repository.
  
      name
          Repository name
  
      CLI example::
  
          salt myminion elasticsearch.repository_verify testrepo