def get_dump_list(els, repo):

    """Function:  get_dump_list

    Description:  Return a list of dumps within a named repository.

    Arguments:
        (input) els -> ElasticSearch instance.
        (input) repo -> Name of repository.
        (output) List of ElasticSearch dumps.

    """

    return [item.split()
            for item in els.cat.snapshots(repository=repo).splitlines()]