]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
ceph-ansible-nightly: fix find for latest stable tag
authorSébastien Han <seb@redhat.com>
Fri, 16 Mar 2018 10:50:19 +0000 (11:50 +0100)
committerSébastien Han <seb@redhat.com>
Fri, 16 Mar 2018 10:50:19 +0000 (11:50 +0100)
commit2f0dfd77af630c00105b606fe676cd7effb1d2de
tree3aca5109f36d3c13b3fc3a376e2b5e4f4f986879
parent7953355be78a686bb34cf515d058a82fbcfe81d7
ceph-ansible-nightly: fix find for latest stable tag

Simplify the code to find the latest tag.
Docker Hub API when queried only returns the 10 first tags. This is
annoying but we have to:

* count the number of pages
* query all the tags from each page
* when we find one tag, we pick the first one from the variable

Signed-off-by: Sébastien Han <seb@redhat.com>
ceph-ansible-nightly/build/build